MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / validateString

Function validateString

src/platform/vscode-path/path.ts:76–80  ·  view source on GitHub ↗
(value: string, name: string)

Source from the content-addressed store, hash-verified

74}
75
76function validateString(value: string, name: string) {
77 if (typeof value !== 'string') {
78 throw new ErrorInvalidArgType(name, 'string', value);
79 }
80}
81
82function isPathSeparator(code: number | undefined) {
83 return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;

Callers 9

resolveFunction · 0.85
normalizeFunction · 0.85
isAbsoluteFunction · 0.85
joinFunction · 0.85
relativeFunction · 0.85
dirnameFunction · 0.85
basenameFunction · 0.85
extnameFunction · 0.85
parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected