| 1 |
import uri, { URIComponents, URIComponent, Options, options } from '..' |
| 2 |
import { expectDeprecated, expectType } from 'tsd' |
| 3 |
|
| 4 |
const parsed = uri.parse('foo') |
| 5 |
expectType<URIComponents>(parsed) |
| 6 |
const parsed2 = uri.parse('foo', { |
| 7 |
domainHost: true, |
| 8 |
scheme: 'https', |
| 9 |
unicodeSupport: false |
| 10 |
}) |
| 11 |
expectType<URIComponents>(parsed2) |
| 12 |
|
| 13 |
expectType<URIComponent>({} as URIComponents) |
| 14 |
expectDeprecated({} as URIComponents) |
| 15 |
|
| 16 |
expectType<Options>({} as options) |
| 17 |
expectDeprecated({} as options) |