(type: ts.Type | null)
| 99 | } |
| 100 | |
| 101 | export 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 | |
| 113 | export function isEnumType(type: ts.Type) { |
| 114 | // if for some reason this returns true... |
no test coverage detected