MCPcopy Create free account
hub / github.com/KartikLabhshetwar/lazycommit / parseAssert

Function parseAssert

src/utils/config.ts:16–20  ·  view source on GitHub ↗
(name: string, condition: any, message: string)

Source from the content-addressed store, hash-verified

14 hasOwnProperty.call(object, key);
15
16const parseAssert = (name: string, condition: any, message: string) => {
17 if (!condition) {
18 throw new KnownError(`Invalid config property ${name}: ${message}`);
19 }
20};
21
22const configParsers = {
23 GROQ_API_KEY(key?: string) {

Callers 8

GROQ_API_KEYFunction · 0.85
localeFunction · 0.85
generateFunction · 0.85
typeFunction · 0.85
proxyFunction · 0.85
timeoutFunction · 0.85
'max-length'Function · 0.85
'chunk-size'Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected