mirror of
https://github.com/CyC2018/Interview-Notebook.git
synced 2026-11-23 14:43:52 +00:00
use prism-tomorrow.css
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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.
|
||||
Reference in New Issue
Block a user