/
githubmirror
/
CS-Notes
Обзор
Документация
Войти
/
githubmirror
/
CS-Notes
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/_style/prism-master/examples/prism-flow.html
18 строк
576 B
CyC2018
use prism-tomorrow.css
19 дек 2018, 09:09
19 дек 2018, 09:09
e9e604e
Код
Авторство
О чём код?
<h2>Primitive types</h2> <pre><code>function method(x: number, y: string, z: boolean) {} function stringifyBasicValue(value: string | number) {} function add(one: any, two: any): number { return one + two; } const bar: number = 2; var barVar: number = 2; let barLet: number = 2; let isOneOf: number | boolean | string = foo;</code></pre> <h2>Keywords</h2> <pre><code>type UnionAlias = 1 | 2 | 3; opaque type ID = string; declare opaque type PositiveNumber: number; type Country = $Keys<typeof countries>; type RequiredProps = $Diff<Props, DefaultProps>;</code></pre>