MCPcopy Create free account
hub / github.com/TanStack/ai / numberField

Function numberField

packages/ai-client/src/devtools.ts:331–337  ·  view source on GitHub ↗
(
  record: UnknownRecord | undefined,
  field: string,
)

Source from the content-addressed store, hash-verified

329}
330
331function numberField(
332 record: UnknownRecord | undefined,
333 field: string,
334): number | undefined {
335 const value = record?.[field]
336 return typeof value === 'number' ? value : undefined
337}
338
339function isGenerationMediaItem(
340 value: AIDevtoolsGenerationMediaItem | undefined,

Callers 3

audioPreviewFromResultFunction · 0.70
videoJobFromStatusFunction · 0.70
mediaItemFromSourceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected