MCPcopy Create free account
hub / github.com/denoland/std / assertArg

Function assertArg

path/_common/format.ts:19–25  ·  view source on GitHub ↗
(pathObject: Partial<ParsedPath>)

Source from the content-addressed store, hash-verified

17}
18
19export function assertArg(pathObject: Partial<ParsedPath>) {
20 if (pathObject === null || typeof pathObject !== "object") {
21 throw new TypeError(
22 `The "pathObject" argument must be of type Object, received type "${typeof pathObject}"`,
23 );
24 }
25}

Callers 9

format_test.tsFile · 0.90
normalizeFunction · 0.90
dirnameFunction · 0.90
formatFunction · 0.90
fromFileUrlFunction · 0.90
normalizeFunction · 0.90
dirnameFunction · 0.90
formatFunction · 0.90
fromFileUrlFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected