MCPcopy Create free account
hub / github.com/glideapps/quicktype / matchCompoundType

Function matchCompoundType

src/Type.ts:531–557  ·  view source on GitHub ↗
(
    t: Type,
    arrayType: (arrayType: ArrayType) => void,
    classType: (classType: ClassType) => void,
    mapType: (mapType: MapType) => void,
    unionType: (unionType: UnionType) => void
)

Source from the content-addressed store, hash-verified

529}
530
531export function matchCompoundType(
532 t: Type,
533 arrayType: (arrayType: ArrayType) => void,
534 classType: (classType: ClassType) => void,
535 mapType: (mapType: MapType) => void,
536 unionType: (unionType: UnionType) => void
537): void {
538 function ignore<T extends Type>(_: T): void {
539 return;
540 }
541
542 return matchType(
543 t,
544 ignore,
545 ignore,
546 ignore,
547 ignore,
548 ignore,
549 ignore,
550 arrayType,
551 classType,
552 mapType,
553 ignore,
554 unionType,
555 { dateType: ignore, timeType: ignore, dateTimeType: ignore }
556 );
557}

Callers 1

processTypeFunction · 0.90

Calls 1

matchTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…