smartenv/dist/smartenv.classes.smartenv.d.ts

23 lines
569 B
TypeScript
Raw Permalink Normal View History

2017-05-17 13:59:10 +00:00
export interface IEnvObject {
name: string;
value: string;
}
export declare class Smartenv {
readonly runtimeEnv: string;
readonly isBrowser: boolean;
readonly userAgent: string;
readonly isNode: boolean;
readonly nodeVersion: string;
readonly isCI: boolean;
isMacAsync(): Promise<boolean>;
isWindowsAsync(): Promise<boolean>;
isLinuxAsync(): Promise<boolean>;
2017-05-17 13:59:10 +00:00
/**
* get environment variables that fit the description
*/
/**
* prints the environment to console
*/
printEnv(): Promise<void>;
}