Debian Codegraph @

examples/prism-flow.html

raw symbols SCIP
1 <h2>Primitive types</h2>
2 <pre><code>function method(x: number, y: string, z: boolean) {}
3 function stringifyBasicValue(value: string | number) {}
4 function add(one: any, two: any): number {
5 return one + two;
6 }
7
8 const bar: number = 2;
9 var barVar: number = 2;
10 let barLet: number = 2;
11 let isOneOf: number | boolean | string = foo;</code></pre>
12
13 <h2>Keywords</h2>
14 <pre><code>type UnionAlias = 1 | 2 | 3;
15 opaque type ID = string;
16 declare opaque type PositiveNumber: number;
17 type Country = $Keys&lt;typeof countries>;
18 type RequiredProps = $Diff&lt;Props, DefaultProps>;</code></pre>