DefinitelyTyped/types/is-ssh/is-ssh-tests.ts
2019-08-21 10:28:52 -07:00

7 lines
315 B
TypeScript

import isSsh = require('is-ssh');
isSsh('ssh://user@host.xz:port/path/to/repo.git/'); // $ExpectType boolean
isSsh('ssh://user@host.xz/path/to/repo.git/'); // $ExpectType boolean
isSsh('ssh://host.xz:port/path/to/repo.git/'); // $ExpectType boolean
isSsh('ssh://host.xz/path/to/repo.git/'); // $ExpectType boolean