New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/snowpack-env

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/snowpack-env - npm Package Compare versions

Comparing version

to
2.3.4

2

snowpack-env/index.d.ts

@@ -49,4 +49,4 @@ // Type definitions for snowpack 2.3

readonly NODE_ENV: string;
readonly SSR?: boolean;
readonly SSR?: boolean | undefined;
};
}
{
"name": "@types/snowpack-env",
"version": "2.3.3",
"version": "2.3.4",
"description": "TypeScript definitions for snowpack",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/snowpack-env",
"license": "MIT",

@@ -37,4 +38,4 @@ "contributors": [

"dependencies": {},
"typesPublisherContentHash": "8581ab7f4ddeb3556e04b8f8d254ae85b4fc0e45dea3ce5db41cafb3b4e58ca1",
"typesPublisherContentHash": "58d46dd6c34bdbd44926e1d7563e99246e0597894a2f147240bd72d36bc2188d",
"typeScriptVersion": "3.7"
}

@@ -9,5 +9,60 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/snowpack-env.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/snowpack-env/index.d.ts)
````ts
// Type definitions for snowpack 2.3
// Project: https://github.com/pikapkg/snowpack#readme
// Definitions by: Fred K. Schott <https://github.com/FredKSchott>
// Michael Stramel <https://github.com/stramel>
// Drew Powers <https://github.com/drwpow>
// Jack Works <https://github.com/Jack-Works>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 3.7
interface ImportMetaHot {
/** Accept the HMR update. */
accept(
callback?: (update: {
/** The newer version of the current module */
module: unknown;
}) => void,
): void;
/** Accept the HMR update with dependencies update. */
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;
/** Cleanup side-effects before load the newer version of this module. */
dispose(callback: () => void): void;
/** Mark the HMR as invalidated to reload the whole page. */
invalidate(): void;
/** Mark this module as HMR incompatible, always reload the page. */
decline(): void;
/** See https://github.com/pikapkg/esm-hmr#importmetahotdata */
data: unknown;
}
interface ImportMeta {
url: string;
// TypeScript Bug: https://github.com/microsoft/TypeScript/issues/41468
// When TS bug is fixed and ecosystem has upgraded, then it will be safe
// to change `hot` to the more correct "possibly undefined" (hot?: ...).
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: Fri, 18 Dec 2020 18:05:16 GMT
* Last updated: Tue, 06 Jul 2021 16:35:02 GMT
* Dependencies: none

@@ -14,0 +69,0 @@ * Global values: none