MCPcopy Create free account
hub / github.com/plotly/dash / isUnionLiteral

Function isUnionLiteral

dash/extract-meta.js:81–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79const isArray = rawType => reArray.test(rawType);
80
81const isUnionLiteral = typeObj =>
82 typeObj.types.every(
83 t =>
84 t.getFlags() &
85 (ts.TypeFlags.StringLiteral |
86 ts.TypeFlags.NumberLiteral |
87 ts.TypeFlags.EnumLiteral |
88 ts.TypeFlags.Undefined)
89 );
90
91function logError(error, filePath) {
92 if (filePath) {

Callers 1

getPropTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…