Files
wumpfetch/__test__/wumpfetch-tests.ts
2019-04-23 15:19:43 -07:00

15 lines
308 B
TypeScript

import w from '../index';
interface Yeetus
{
yes: boolean;
}
(async() => {
const res = await w('https://myurl.org', { method: 'GET' }).send();
const res1 = await w('https://myurl.org', { method: 'GET', chaining: false });
const d = res.json<Yeetus>();
const d1 = res.json();
})();