mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
69 lines
700 B
TypeScript
69 lines
700 B
TypeScript
import Fetch from 'fetch.io';
|
|
|
|
const request = new Fetch();
|
|
|
|
request
|
|
.get('')
|
|
.query({})
|
|
.json();
|
|
|
|
request
|
|
.delete('')
|
|
.json();
|
|
|
|
request
|
|
.head('')
|
|
.json();
|
|
|
|
request
|
|
.options('')
|
|
.json();
|
|
|
|
request
|
|
.put('')
|
|
.json();
|
|
|
|
request
|
|
.patch('')
|
|
.json();
|
|
|
|
request
|
|
.config('key', 'value')
|
|
.json();
|
|
|
|
request
|
|
.config({key: 'value'})
|
|
.json();
|
|
|
|
request
|
|
.config('set', 'value')
|
|
.json();
|
|
|
|
request
|
|
.set({key: 'value'})
|
|
.json();
|
|
|
|
request
|
|
.type('json')
|
|
.json();
|
|
|
|
request
|
|
.get('')
|
|
.query({})
|
|
.text();
|
|
|
|
request
|
|
.get('')
|
|
.query({})
|
|
.then(() => {});
|
|
|
|
request
|
|
.post('')
|
|
.send({})
|
|
.json();
|
|
|
|
request
|
|
.post('')
|
|
.append('key', 'value')
|
|
.append({key: 'value'});
|