Amended text API documentation

To allow number / boolean to be passed based on input from @dmethvin [here](https://github.com/borisyankov/DefinitelyTyped/pull/1835#issuecomment-37533088).