MCPcopy Create free account
hub / github.com/contentlayerdev/contentlayer / isReadonlyArray

Function isReadonlyArray

packages/@contentlayer/utils/src/index.ts:104–104  ·  view source on GitHub ↗
(_: any)

Source from the content-addressed store, hash-verified

102export class RawError extends Tagged('RawError')<{ readonly error: unknown }> {}
103
104export const isReadonlyArray = <T>(_: any): _ is ReadonlyArray<T> => Array.isArray(_)
105
106export function assertNever(_: any): never {
107 throw new Error(`assertNever: This should never happen ${JSON.stringify(_)}`)

Callers 1

stackbitFieldToFieldFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…