MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / isNumberType

Function isNumberType

packages/transpiler/src/BuilderHelpers.ts:101–111  ·  view source on GitHub ↗
(type: ts.Type | null)

Source from the content-addressed store, hash-verified

99}
100
101export function isNumberType(type: ts.Type | null) {
102 if (!type) {
103 return false;
104 }
105
106 if (hasFlag(type, ts.TypeFlags.Number)) {
107 return true;
108 }
109
110 return false;
111}
112
113export function isEnumType(type: ts.Type) {
114 // if for some reason this returns true...

Callers 1

fillBaseInfoFromFunction · 0.90

Calls 1

hasFlagFunction · 0.70

Tested by

no test coverage detected