/
githubmirror
/
CS-Notes
Обзор
Документация
Войти
/
githubmirror
/
CS-Notes
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/_style/prism-master/tests/languages/flow/function-variable_feature.test
20 строк
690 B
CyC2018
use prism-tomorrow.css
19 дек 2018, 09:09
19 дек 2018, 09:09
e9e604e
Код
Авторство
О чём код?
foo = (a: number) : number => {} bar = () : string => {} ---------------------------------------------------- [ ["function-variable", "foo"], ["operator", "="], ["punctuation", "("], "a", ["punctuation", ":"], ["type", "number"], ["punctuation", ")"], ["punctuation", ":"], ["type", "number"], ["operator", "=>"], ["punctuation", "{"], ["punctuation", "}"], ["function-variable", "bar"], ["operator", "="], ["punctuation", "("], ["punctuation", ")"], ["punctuation", ":"], ["type", "string"], ["operator", "=>"], ["punctuation", "{"], ["punctuation", "}"] ] ---------------------------------------------------- Checks for function variables containing types.