(x)
| 219 | } |
| 220 | |
| 221 | export const inferType = function inferType(x) { |
| 222 | return ( |
| 223 | x instanceof Parameter ? x.type : |
| 224 | x instanceof Date ? 1184 : |
| 225 | x instanceof Uint8Array ? 17 : |
| 226 | (x === true || x === false) ? 16 : |
| 227 | typeof x === 'bigint' ? 20 : |
| 228 | Array.isArray(x) ? inferType(x[0]) : |
| 229 | 0 |
| 230 | ) |
| 231 | } |
| 232 | |
| 233 | const escapeBackslash = /\\/g |
| 234 | const escapeQuote = /"/g |
no outgoing calls
no test coverage detected