MCPcopy Create free account
hub / github.com/brillout/react-streaming / errMsg

Function errMsg

src/utils/path.ts:15–15  ·  view source on GitHub ↗
(msg: string)

Source from the content-addressed store, hash-verified

13
14function assertPosixPath(path: string): void {
15 const errMsg = (msg: string) => `Not a posix path: ${msg}`
16 assert(path !== null, errMsg('null'))
17 assert(typeof path === 'string', errMsg(`typeof path === ${JSON.stringify(typeof path)}`))
18 assert(path !== '', errMsg('(empty string)'))

Callers 1

assertPosixPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…