MCPcopy Create free account
hub / github.com/WinterTC55/iter-streams / isTransformObject

Function isTransformObject

src/pull.ts:51–58  ·  view source on GitHub ↗

* Check if a value is a TransformObject (has transform property).

(value: unknown)

Source from the content-addressed store, hash-verified

49/**
50 * Check if a value is a TransformObject (has transform property).
51 */
52function isTransformObject(value: unknown): value is TransformObject {
53 return (
54 value !== null &&
55 typeof value === 'object' &&
56 'transform' in value &&
57 typeof (value as TransformObject).transform === 'function'
58 );
59}
60
61/**

Callers 4

isSyncTransformObjectFunction · 0.70
createAsyncPipelineFunction · 0.70
pipeToSyncFunction · 0.70
pipeToFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected