MCPcopy Index your code
hub / github.com/coder/guts / includeComparable

Method includeComparable

builtins.go:19–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17}
18
19func (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}

Callers 1

typescriptTypeMethod · 0.95

Calls 4

setNodeMethod · 0.95
UnionFunction · 0.92
RefMethod · 0.80
ptrFunction · 0.70

Tested by

no test coverage detected