Installation
npm install --save @types/snowpack-env
Summary
This package contains type definitions for snowpack-env (https://github.com/pikapkg/snowpack#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/snowpack-env.
interface ImportMetaHot {
accept(
callback?: (update: {
/** The newer version of the current module */
module: unknown;
}) => void,
): void;
accept(
dependencies: readonly string[],
callback: (update: {
/** The newer version of the current module */
module: unknown;
/** The newer version of dependencies. Order is same as the first argument. */
deps: unknown[];
}) => void,
): void;
dispose(callback: () => void): void;
invalidate(): void;
decline(): void;
data: unknown;
}
interface ImportMeta {
url: string;
readonly hot: ImportMetaHot;
readonly env: {
readonly [key: string]: any;
readonly SNOWPACK_PUBLIC_API_URL: string;
readonly MODE: string;
readonly NODE_ENV: string;
readonly SSR?: boolean | undefined;
};
}
Additional Details
- Last updated: Tue, 30 Jan 2024 21:35:45 GMT
- Dependencies: none
Credits
These definitions were written by Fred K. Schott, Michael Stramel, Drew Powers, and Jack Works.