@storm-stack/utilities
Version:
This package includes various base utility class and various functions to assist in the development process.
12 lines (11 loc) • 357 B
TypeScript
/**
* The function checks if the code is running on the server-side
*
* @returns An indicator specifying if the code is running on the server-side
*/
export declare const isRuntimeServer: () => boolean;
/**
* The function checks if the code is running in
* the browser (and not on the server).
*/
export declare const isRuntimeClient: () => boolean;