DefinitelyTyped/types/git-user-name/git-user-name-tests.ts
2018-12-25 23:57:19 +01:00

7 lines
258 B
TypeScript

import userName = require('git-user-name');
userName(); // $ExpectType string | null
userName({ cwd: 'foo' }); // $ExpectType string | null
userName({ path: 'foo' }); // $ExpectType string | null
userName({ gitconfig: 'foo' }); // $ExpectType string | null