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

21 lines
617 B
TypeScript

// Type definitions for git-username 1.0
// Project: https://github.com/jonschlinkert/git-username
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = gitUsername;
declare function gitUsername(options: gitUsername.StrictOptions): string;
declare function gitUsername(options?: string | gitUsername.BaseOptions): string | null;
declare namespace gitUsername {
interface BaseOptions {
cwd?: string;
strict?: boolean;
}
interface StrictOptions extends BaseOptions {
strict: true;
}
}