DefinitelyTyped/types/git-username/git-username-tests.ts
2018-12-25 20:21:51 +01:00

6 lines
207 B
TypeScript

import username = require('git-username');
username('some/path'); // $ExpectType string | null
username({ cwd: 'some/path' }); // $ExpectType string | null
username({ strict: true }); // $ExpectType string