Spaces:
Paused
Paused
Download node_modules/graphql/jsutils/invariant.mjs from sam522/GenAI_Course: direct link, hf CLI and curl.
- Browser
- Download file 226 Bytes
-
https://huggingface.co/spaces/sam522/GenAI_Course/resolve/2fd35fe0dbbccdd816285ca3b098a170940cfdef/node_modules/graphql/jsutils/invariant.mjs
- Command line
-
hf download hf://spaces/sam522/GenAI_Course@2fd35fe0dbbccdd816285ca3b098a170940cfdef/node_modules/graphql/jsutils/invariant.mjs
-
curl -L -o invariant.mjs https://huggingface.co/spaces/sam522/GenAI_Course/resolve/2fd35fe0dbbccdd816285ca3b098a170940cfdef/node_modules/graphql/jsutils/invariant.mjs
226 Bytes
| export function invariant(condition, message) { | |
| const booleanCondition = Boolean(condition); | |
| if (!booleanCondition) { | |
| throw new Error( | |
| message != null ? message : 'Unexpected invariant triggered.', | |
| ); | |
| } | |
| } | |