(a: undefined | boolean | 'optional' | HostGPURequirements)
| 243 | } |
| 244 | |
| 245 | function asHostGPURequirements(a: undefined | boolean | 'optional' | HostGPURequirements): HostGPURequirements { |
| 246 | if (typeof a !== 'object') { |
| 247 | return {}; |
| 248 | } else { |
| 249 | return a as HostGPURequirements; |
| 250 | } |
| 251 | } |
| 252 | |
| 253 | function parseBytes(str: string) { |
| 254 | const m = /^(\d+)([tgmk]b)?$/.exec(str); |
no outgoing calls
no test coverage detected