Closed nathancahill closed 7 years ago
@nathancahill Thanks for submitting! I'd love to have some typescript definitions in here. I, in fact, love types (big haskell fan), but haven't used much Typescript.
If you could edit the definition to be fully correct, I'd appreciate it. The following keys also are allowed on the RequestParameters
parameters object:
responseType
: string, see xhr docs for enum optionswithCredentials
: boolean, IE10+, CORS onlytimeout
: number, ms timeout, IE8+onprogress
: callback, IE10+Closing due to inactivity. Reopen if anyone wants to work on this.
I'm using nanoajax in a Typescript project, so I wrote a definition file based on your comments in the source. If you'd rather not have a ts definition in the project, feel free to ignore the PR (I also submitted to DefinitelyTyped: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/8312)