(d: unknown)
| 53 | function isObj(x: unknown): x is DefRecord { |
| 54 | return x !== null && typeof x === 'object' && !Array.isArray(x); |
| 55 | } |
| 56 | |
| 57 | function isOperatorDef(d: unknown): boolean { |
| 58 | return ( |
| 59 | isObj(d) && |
| 60 | ('evaluate' in d || |
| 61 | 'signature' in d || |
| 62 | 'sgn' in d || |
| 63 | 'complexity' in d || |
| 64 | 'canonical' in d) |
| 65 | ); |
| 66 | } |
| 67 |