DefinitelyTyped/types/protocols/protocols-tests.ts
2019-08-21 11:58:41 -07:00

7 lines
309 B
TypeScript

import protocols = require('protocols');
protocols('git+ssh://git@some-host.com/and-the-path/name'); // $ExpectType string[]
protocols('http://example.com', true); // $ExpectType string
protocols('ftp://example.com', 1); // $ExpectType string
protocols('https://example.com', false); // $ExpectType string[]