mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 19:51:53 +00:00
27 lines
642 B
TypeScript
27 lines
642 B
TypeScript
// Type definitions for first-run 1.2
|
|
// Project: https://github.com/sindresorhus/first-run
|
|
// Definitions by: BendingBender <https://github.com/BendingBender>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export = firstRun;
|
|
|
|
/**
|
|
* Check if it's the first time the process is run.
|
|
*/
|
|
declare function firstRun(options?: firstRun.Options): boolean;
|
|
|
|
declare namespace firstRun {
|
|
/**
|
|
* Clear the state.
|
|
*/
|
|
function clear(): void;
|
|
|
|
interface Options {
|
|
/**
|
|
* The name used to identify it.
|
|
* @default name field in your package.json
|
|
*/
|
|
name: string;
|
|
}
|
|
}
|