MCPcopy
hub / github.com/prisma/prisma / assertString

Function assertString

helpers/compile/plugins/fill-plugin/fillers/buffer-small.ts:645–651  ·  view source on GitHub ↗
(value: any, argName: string)

Source from the content-addressed store, hash-verified

643}
644
645function assertString(value: any, argName: string): asserts value is string {
646 if (typeof value !== 'string') {
647 const e = new TypeError(`The "${argName}" argument must be of type string. Received type ${typeof value}`)
648 e['code'] = 'ERR_INVALID_ARG_TYPE'
649 throw e
650 }
651}
652
653const bounds = {
654 int8: [-0x80, 0x7f],

Callers 2

allocMethod · 0.85
fillMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected