diff --git a/types/fetch.io/fetch.io-tests.ts b/types/fetch.io/fetch.io-tests.ts index 67c2612fdc..8ca6757ada 100644 --- a/types/fetch.io/fetch.io-tests.ts +++ b/types/fetch.io/fetch.io-tests.ts @@ -23,6 +23,10 @@ request .put('') .json(); +request + .patch('') + .json(); + request .config('key', 'value') .json(); diff --git a/types/fetch.io/index.d.ts b/types/fetch.io/index.d.ts index fabbbc4b52..29d5d2dfab 100644 --- a/types/fetch.io/index.d.ts +++ b/types/fetch.io/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for fetch.io 4.0 +// Type definitions for fetch.io 4.1 // Project: https://github.com/haoxins/fetch.io // Definitions by: newraina // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -63,6 +63,11 @@ export class Request { */ put: (url: TUrl) => this; + /** + * HTTP patch method + */ + patch: (url: TUrl) => this; + /** * Set Options */ @@ -93,7 +98,7 @@ export class Request { send(data: {[key: string]: any}): this; /** - * ppend formData + * append formData */ append(key: string, value: any): this;