()
| 17 | } |
| 18 | |
| 19 | func (ts *Typescript) includeComparable() { |
| 20 | // The zzz just pushes it to the end of the sorting. |
| 21 | // Kinda strange, but it works. |
| 22 | _ = ts.setNode(builtInComparable.Ref(), typescriptNode{ |
| 23 | Node: &bindings.Alias{ |
| 24 | Name: builtInComparable, |
| 25 | Modifiers: []bindings.Modifier{}, |
| 26 | Type: bindings.Union( |
| 27 | ptr(bindings.KeywordString), |
| 28 | ptr(bindings.KeywordNumber), |
| 29 | ptr(bindings.KeywordBoolean), |
| 30 | ), |
| 31 | Parameters: []*bindings.TypeParameter{}, |
| 32 | Source: bindings.Source{}, |
| 33 | }, |
| 34 | }) |
| 35 | } |
no test coverage detected