import { expectType } from 'tsd' import { Client } from '../src' interface User { name: string } ;async () => { const response = await Client.new().get('http://example.com') expectType( response.data() ) } ;async () => { const response = await Client.new().get('http://example.com') expectType(response.data()) } ;async () => { const response = await Client.new().get('http://example.com/string') expectType(response.data()) } ;async () => { const response = await Client.new().upload({ url: 'http://example.com', filePath: '/tmp/foo.txt', name: 'file' }) expectType(response.data()) }