mirror of
https://github.com/Wessel/wumpfetch.git
synced 2026-06-06 07:35:42 +02:00
15 lines
308 B
TypeScript
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();
|
|
})();
|