MCPcopy
hub / github.com/sparkjsdev/spark / valType

Function valType

src/dyno/value.ts:19–25  ·  view source on GitHub ↗
(val: DynoVal<T>)

Source from the content-addressed store, hash-verified

17export type DynoVal<T extends DynoType> = DynoValue<T> | HasDynoOut<T>;
18
19export function valType<T extends DynoType>(val: DynoVal<T>): T {
20 if (val instanceof DynoValue) {
21 return val.type;
22 }
23 const value = val.dynoOut();
24 return value.type;
25}
26
27export interface HasDynoOut<T extends DynoType> {
28 dynoOut(): DynoValue<T>;

Callers 15

constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90

Calls 1

dynoOutMethod · 0.65

Tested by

no test coverage detected