DefinitelyTyped/types/github-url-from-git/github-url-from-git-tests.ts
2019-09-24 16:53:49 -07:00

7 lines
385 B
TypeScript

import * as parse from 'github-url-from-git';
parse('https://github.com/jamesor/mongoose-versioner'); // $ExpectType string
parse('git://github.internal.example.com/treygriffith/cellar.git', { extraBaseUrls: ['github.internal.example.com'] }); // $ExpectType string
parse.re(); // $ExpectType RegExp
parse.re({ extraBaseUrls: ['github.internal.example.com'] }); // $ExpectType RegExp