MCPcopy Create free account

hub / github.com/basarat/typescript-book / functions

Functions363 in github.com/basarat/typescript-book

↓ 96 callersMethodlog
()
code/es6/classes/super.ts:5
↓ 95 callersMethodlog
()
code/types/freshness/index-signatures.ts:9
↓ 14 callersMethodnext
()
code/es6/iterators.ts:17
↓ 11 callersMethodtoString
(encoding?: string, start?: number, end?: number)
code/compiler/typings/node/node.d.ts:332
↓ 6 callersMethodadd
(point: Point)
code/es6/classes/class.ts:8
↓ 6 callersFunctiondoStuff
(arg: Foo | Bar)
code/types/typeGuard.ts:22
↓ 6 callersFunctiondoStuff
(arg)
code/types/typeGuard.js:28
↓ 5 callersFunctioncallMe
(v1, v2)
code/types/types.js:197
↓ 5 callersFunctioncallMe
(v1?: any, v2?: any)
code/types/types.ts:208
↓ 5 callersFunctionfoo
(sampleParameter: { bar: number })
code/types/functions.ts:9
↓ 5 callersFunctionfoo
(sampleParameter)
code/types/functions.js:5
↓ 5 callersFunctionlogName
(something: { name: string })
code/types/freshness/freshness.ts:4
↓ 5 callersFunctionlogName
(something)
code/types/freshness/freshness.js:4
↓ 5 callersMethodsetState
(state: State)
code/types/freshness/freshness.ts:55
↓ 4 callersFunctionadd
(x)
code/tips/currying.js:2
↓ 4 callersMethodbind
(port: number, address?: string, callback?: () => void)
code/compiler/typings/node/node.d.ts:1012
↓ 4 callersFunctioncurryOne
(x: number)
code/tips/bindIsBad.ts:31
↓ 4 callersFunctioncurryOne
(x)
code/tips/bindIsBad.js:28
↓ 4 callersMethodendsWith
(suffix: string)
code/types/lib/usage/libd.ts:30
↓ 4 callersFunctiongetOrSet
(value)
code/types/types.js:170
↓ 4 callersFunctiongetOrSet
(value)
code/types/types.ts:173
↓ 4 callersFunctioniTakeSomethingAndPassItAnErr
(x)
code/types/type-compatibility.js:16
↓ 4 callersFunctioniTakeSomethingAndPassItAnErr
(x: (err: Error, data: any) => void)
code/types/type-compatibility.ts:11
↓ 4 callersFunctionlogIfHasName
(something)
code/types/freshness/freshness.js:24
↓ 4 callersMethodmeow
()
code/types/type-compatibility.ts:81
↓ 4 callersFunctionprintAnimalAbilities
(animal)
code/es6/enums.js:30
↓ 4 callersFunctionprintAnimalAbilities
(animal)
code/es6/enums.ts:41
↓ 4 callersFunctionstep
(result)
code/async-await/es5/asyncAwaitES5.js:5
↓ 3 callersFunctionlogIfHasName
(something: { name?: string })
code/types/freshness/freshness.ts:27
↓ 3 callersFunctionstep
(result)
code/async-await/es6/asyncAwaitES6.js:5
↓ 3 callersFunctionverb
(n)
code/async-await/es5/asyncAwaitES5.js:12
↓ 2 callersMethodactivate
()
code/tips/mixins.ts:13
↓ 2 callersFunctionadd
(x: number)
code/tips/currying.ts:5
↓ 2 callersMethodadd
(b: string)
code/tips/bindIsBad.ts:6
↓ 2 callersFunctionfoo
(config)
code/types/readonly.js:9
↓ 2 callersMethodhelloWorld
()
code/types/lib/usage/libd.ts:7
↓ 2 callersFunctioniTakeAnAdder
(adder: Adder)
code/types/type-inference.ts:29
↓ 2 callersFunctioniTakeAnAdder
(adder)
code/types/type-inference.js:26
↓ 2 callersFunctioniTakeItAll
(first, second, ...allOthers)
code/es6/rest-parameters.ts:2
↓ 2 callersFunctioniTakeItAll
(first, second)
code/es6/rest-parameters.js:3
↓ 2 callersMethodinteract
()
code/tips/mixins.ts:37
↓ 2 callersFunctionmove
(distance, direction)
code/types/stringLiteralType.js:9
↓ 2 callersFunctionmove
(distance, direction)
code/types/literal-types.js:9
↓ 2 callersFunctionmove
(distance: number, direction: CardinalDirection)
code/types/literal-types.ts:14
↓ 2 callersMethodon
(event: string, listener: Function)
code/compiler/typings/node/node.d.ts:152
↓ 2 callersFunctionouterFunction
(arg)
code/javascript/closure.js:2
↓ 2 callersFunctionouterFunction
(arg)
code/javascript/closure.ts:1
↓ 2 callersFunctionoverloaded
(foo)
code/types/callable.ts:23
↓ 2 callersFunctionreverse
(items)
code/types/types.js:99
↓ 2 callersFunctionreverse
(items: T[])
code/types/types.ts:112
↓ 2 callersMethodseedrandom
(seed?: string)
code/types/lib/usage/libd.ts:19
↓ 2 callersMethodsend
(buf: Buffer, offset: number, length: number, port: number, address: string, callback?: (error: Error, bytes:
code/compiler/typings/node/node.d.ts:1011
↓ 2 callersMethodslice
(start?: number, end?: number)
code/compiler/typings/node/node.d.ts:338
↓ 2 callersFunctionuseAdd
(add: (x: number) => number)
code/tips/bindIsBad.ts:11
↓ 2 callersFunctionuseAdd
(add)
code/tips/bindIsBad.js:11
↓ 1 callersFunctionaddOne
(a)
code/types/type-inference.ts:97
↓ 1 callersFunctionaddOne
(a)
code/types/type-inference.js:84
↓ 1 callersFunctionapplyMixins
(derivedCtor, baseCtors)
code/tips/mixins.js:45
↓ 1 callersFunctionapplyMixins
(derivedCtor: any, baseCtors: any[])
code/tips/mixins.ts:50
↓ 1 callersFunctionbar
()
code/javascript/closure.js:4
↓ 1 callersFunctionbar
()
code/javascript/closure.ts:4
↓ 1 callersFunctioncreateBar
(value: string)
code/tips/nominalTyping.ts:14
↓ 1 callersFunctioncreateCounter
()
code/javascript/closure.js:23
↓ 1 callersFunctioncreateCounter
()
code/javascript/closure.ts:31
↓ 1 callersFunctioncreateFoo
(value: string)
code/tips/nominalTyping.ts:13
↓ 1 callersFunctiondelay
(milliseconds, count)
code/async-await/es6/asyncAwaitES6.js:9
↓ 1 callersFunctiondelay
(milliseconds: number, count: number)
code/async-await/es6/asyncAwaitES6.ts:1
↓ 1 callersFunctiondelay
(milliseconds, count)
code/async-await/es5/asyncAwaitES5.js:36
↓ 1 callersFunctiondelay
(milliseconds: number, count: number)
code/async-await/es5/asyncAwaitES5.ts:1
↓ 1 callersFunctiondramaticWelcome
()
code/async-await/es6/asyncAwaitES6.js:17
↓ 1 callersFunctiondramaticWelcome
()
code/async-await/es6/asyncAwaitES6.ts:10
↓ 1 callersFunctiondramaticWelcome
()
code/async-await/es5/asyncAwaitES5.js:44
↓ 1 callersFunctiondramaticWelcome
()
code/async-await/es5/asyncAwaitES5.ts:10
↓ 1 callersFunctionfoo
(config: { readonly bar: number, readonly bas: number })
code/types/readonly.ts:2
↓ 1 callersFunctiongetJSON
(config: { url: string, headers?: { [key: string]: string }, })
code/types/generics.ts:48
↓ 1 callersFunctionhtmlEscape
(literals)
code/es6/template-strings.js:31
↓ 1 callersFunctionhtmlEscape
(literals, ...placeholders)
code/es6/template-strings.ts:34
↓ 1 callersFunctioniMutateFoo
(foo)
code/types/readonly.js:84
↓ 1 callersFunctioniMutateFoo
(foo: { bar: number })
code/types/readonly.ts:108
↓ 1 callersFunctioniTakeFoo
(foo)
code/types/readonly.js:95
↓ 1 callersFunctioniTakeFoo
(foo: Foo)
code/types/readonly.ts:124
↓ 1 callersFunctioninitializeState
(text)
code/compiler/scanner/runScanner.js:3
↓ 1 callersFunctioninitializeState
(text)
code/compiler/scanner/runScannerWithPositions.js:3
↓ 1 callersFunctioninitializeState
(text: string)
code/compiler/scanner/runScanner.ts:7
↓ 1 callersFunctioninitializeState
(text: string)
code/compiler/scanner/runScannerWithPositions.ts:7
↓ 1 callersFunctionisFoo
* User Defined Type Guard!
code/types/typeGuard.ts:83
↓ 1 callersFunctionisFoo
(arg)
code/types/typeGuard.js:73
↓ 1 callersFunctionprintAllChildren
(node, depth)
code/compiler/parser/runParser.js:2
↓ 1 callersFunctionprintAllChildren
(node: ts.Node, depth = 0)
code/compiler/parser/runParser.ts:3
↓ 1 callersFunctionstrEnum
Utility function to create a K:V from a list of strings
code/types/literal-types.ts:25
↓ 1 callersFunctiontakeSomethingComplex
(arg: SomethingComplex)
code/errors/interpreting-errors.ts:7
↓ 1 callersFunctiontest
()
code/es6/let.ts:19
↓ 1 callersFunctiontest
()
code/es6/let.js:21
↓ 1 callersFunctiontwoParams
(a: number, b: number)
code/tips/bindIsBad.ts:20
↓ 1 callersFunctiontwoParams
(a, b)
code/tips/bindIsBad.js:17
FunctionActivatable
()
code/tips/mixins.js:15
FunctionAdder
(a)
code/tips/bindIsBad.js:3
FunctionAnimal
()
code/types/type-compatibility.js:52
FunctionBar
()
code/types/typeGuard.js:22
FunctionBarFunc
()
docs/styleguide/sample.js:5
next →1–100 of 363, ranked by callers