Files
DefinitelyTyped/types/git-user-name/git-user-name-tests.ts

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