MCPcopy Create free account

hub / github.com/PacktPublishing/TypeScript-Design-Patterns / functions

Functions1,386 in github.com/PacktPublishing/TypeScript-Design-Patterns

↓ 11 callersMethodnow
* Return a number representing the current time.
chapter-6/typings/jquery/jquery.d.ts:1108
↓ 8 callersMethodval
* Get the current value of the first element in the set of matched elements.
chapter-6/typings/jquery/jquery.d.ts:1375
↓ 5 callersMethodappend
* Insert content, specified by the parameter, to the end of each element in the set of matched elements. * * param content1 DOM element,
chapter-6/typings/jquery/jquery.d.ts:2623
↓ 5 callersMethodsetOptions
($select: JQuery, values: string[])
chapter-5/src/mediator.ts:57
↓ 5 callersMethodtoString
(encoding?: string, start?: number, end?: number)
chapter-4/typings/node/node.d.ts:381
↓ 4 callersMethodappendTo
(visitor: NodeVisitor)
chapter-6/src/visitor.ts:3
↓ 4 callersMethodclick
()
chapter-6/src/state.ts:4
↓ 4 callersMethoddraw
()
chapter-4/src/decorator.ts:12
↓ 4 callersMethodget
(key: string)
chapter-4/src/adapter.ts:3
↓ 4 callersFunctiongetRandomInteger
(max: number)
chapter-4/src/flyweight.ts:68
↓ 4 callersMethodmap
* Pass each element in the current matched set through a function, producing a new jQuery object containing the return values. * * @param
chapter-6/typings/jquery/jquery.d.ts:3018
↓ 4 callersMethodrender
(hover: boolean)
chapter-6/src/state.ts:3
↓ 4 callersMethodslice
* Reduce the set of matched elements to a subset specified by a range of indices. * * @param start An integer indicating the 0-based posi
chapter-6/typings/jquery/jquery.d.ts:3171
↓ 3 callersMethodapply
* Implementation of how changes should be applied to the client-side * store.
chapter-2/src/after/client.ts:48
↓ 3 callersMethodemit
(event: string, ...args: any[])
chapter-4/typings/node/node.d.ts:185
↓ 3 callersMethodexecute
(index: number, text: string)
chapter-5/src/command.ts:26
↓ 3 callersMethodindexOf
(value: string | number | Buffer, byteOffset?: number)
chapter-4/typings/node/node.d.ts:425
↓ 3 callersMethodon
(event: string, listener: Function)
chapter-4/typings/node/node.d.ts:225
↓ 3 callersMethodrefuel
(level: number)
chapter-3/src/builder.ts:93
↓ 3 callersMethodrender
(hover: boolean)
chapter-6/src/state.ts:63
↓ 3 callersMethodthen
* Incorporates the functionality of the .done() and .fail() methods, allowing (as of jQuery 1.8) the underlying Promise to be manipulated. Refer to de
chapter-6/typings/jquery/jquery.d.ts:183
↓ 2 callersMethod_get
(identifiers: string[])
chapter-6/src/observer.ts:13
↓ 2 callersMethodaddClass
* Adds the specified class(es) to each of the set of matched elements. * * @param className One or more space-separated classes to be adde
chapter-6/typings/jquery/jquery.d.ts:1228
↓ 2 callersMethodapplyChange
* Method `applyChange` here is actually a refactored version of `update` * in the previous one. In this version, instead of `if` branches, we us
chapter-2/src/after/client.ts:219
↓ 2 callersFunctionbuildPacket
(data: any)
chapter-7/src/event-based-parser.ts:83
↓ 2 callersMethodchange
* Trigger the "change" event on an element.
chapter-6/typings/jquery/jquery.d.ts:1946
↓ 2 callersMethodconsume
(count: number)
chapter-7/src/event-based-parser.ts:78
↓ 2 callersMethodcreateRocket
()
chapter-3/src/abstract-factory.ts:22
↓ 2 callersMethodfilter
* Reduce the set of matched elements to those that match the selector or pass the function's test. * * @param selector A string containin
chapter-6/typings/jquery/jquery.d.ts:2926
↓ 2 callersMethodhandle
(request: Request)
chapter-5/src/chain-of-responsibility.ts:43
↓ 2 callersMethodon
* Attach an event handler function for one or more events to the selected elements. * * @param events One or more space-separated event ty
chapter-6/typings/jquery/jquery.d.ts:2302
↓ 2 callersMethodparse
()
chapter-7/src/event-based-parser.ts:22
↓ 2 callersMethodput
(uri: string, options?: TOptions, callback?: RequestCallback)
chapter-6/typings/request/request.d.ts:39
↓ 2 callersMethodreject
* Reject a Deferred object and call any failCallbacks with the given args. * * @param args Optional arguments that are passed to the fail
chapter-6/typings/jquery/jquery.d.ts:405
↓ 2 callersMethodremoveClass
* Remove a single class, multiple classes, or all classes from each element in the set of matched elements. * * @param className One or mo
chapter-6/typings/jquery/jquery.d.ts:1336
↓ 2 callersMethodwrite
(buffer: Buffer)
chapter-4/typings/node/node.d.ts:1082
↓ 1 callersMethodaddPayload
(satellite: Satellite)
chapter-3/src/builder.ts:142
↓ 1 callersMethodaddStages
()
chapter-3/src/builder.ts:146
↓ 1 callersMethodaddress
()
chapter-4/typings/node/node.d.ts:1099
↓ 1 callersMethodappend
* Implementation of how client-side changes should be appended to the * change list. For example, it may control whether to combine current
chapter-2/src/after/client.ts:43
↓ 1 callersMethodappendBold
(text: BoldText)
chapter-6/src/visitor.ts:8
↓ 1 callersMethodappendChangeToChangeList
* Append a specific change to the client-side change list that will be * synchronized to the server. * * @param id ID of the item to
chapter-2/src/after/client.ts:156
↓ 1 callersMethodappendListItem
(item: ListItem)
chapter-6/src/visitor.ts:10
↓ 1 callersMethodappendText
(text: Text)
chapter-6/src/visitor.ts:7
↓ 1 callersMethodappendUnorderedList
(list: UnorderedList)
chapter-6/src/visitor.ts:9
↓ 1 callersMethodapply
* @param item Target data item to apply the change to. * @param list List of changes that sent from the client. * @return A boolean indica
chapter-2/src/after/server.ts:46
↓ 1 callersMethodapplyChangeToDataItem
* Apply a specific change to the data item in client-side store. * * @param id ID of the item to apply this change to. * @param type
chapter-2/src/after/client.ts:186
↓ 1 callersMethodapplyClientChangeList
* Apply changes in the change list to a item in store. * * Instead of `if` branches, we use predefined strategies that match * speci
chapter-2/src/after/server.ts:126
↓ 1 callersMethodapplyClientChanges
* Apply client changes to items in store, it calls `applyClientChangeList` * to update specific items. * * @param changeLists Change
chapter-2/src/after/server.ts:171
↓ 1 callersMethodapplySyncingResponse
* Apply the response of a synchronizing request to the client, and keep * the client-side data up-to-date. * * @param response Respo
chapter-2/src/after/client.ts:112
↓ 1 callersFunctionbar
()
chapter-5/src/chain-of-responsibility.ts:12
↓ 1 callersFunctionbiu
()
chapter-5/src/chain-of-responsibility.ts:24
↓ 1 callersMethodclick
()
chapter-6/src/state.ts:67
↓ 1 callersMethodconnect
(port: number, host?: string, connectionListener?: Function)
chapter-4/typings/node/node.d.ts:1088
↓ 1 callersMethodcopy
(targetBuffer: Buffer, targetStart?: number, sourceStart?: number, sourceEnd?: number)
chapter-4/typings/node/node.d.ts:386
↓ 1 callersMethodcreatePayload
()
chapter-3/src/abstract-factory.ts:23
↓ 1 callersMethodcreatePayload
()
chapter-3/src/factory-method.ts:42
↓ 1 callersMethodcreateRocket
()
chapter-3/src/factory-method.ts:38
↓ 1 callersMethodcreateStages
()
chapter-3/src/abstract-factory.ts:24
↓ 1 callersMethodcreateStages
()
chapter-3/src/factory-method.ts:46
↓ 1 callersMethoddrawImage
(src: string)
chapter-4/src/bridge.ts:4
↓ 1 callersMethoddrawText
(text: string)
chapter-4/src/bridge.ts:5
↓ 1 callersMethodempty
* Remove all child nodes of the set of matched elements from the DOM.
chapter-6/typings/jquery/jquery.d.ts:2670
↓ 1 callersMethodequal
(act: any, exp: any, msg?: string)
chapter-1/typings/chai/chai.d.ts:256
↓ 1 callersMethoderror
* Bind an event handler to the "error" JavaScript event. (DEPRECATED from v1.8) * * @param handler A function to execute when the event i
chapter-6/typings/jquery/jquery.d.ts:2579
↓ 1 callersFunctionfoo
()
chapter-5/src/chain-of-responsibility.ts:2
↓ 1 callersMethodgetAll
()
chapter-2/src/after/server.ts:73
↓ 1 callersMethodgetChangedItems
* Get changed items from server-side, usually items updated by other * clients. * * @param lastTimestamp The timestamp from client t
chapter-2/src/after/server.ts:103
↓ 1 callersMethodgetCitiesByCountryAndProvince
(country: string, province: string)
chapter-5/src/mediator.ts:77
↓ 1 callersMethodgetClientValue
* This method is for data type like 'set', of which the data is stored as * a hash set on server but expected to be an array on client. *
chapter-2/src/after/server.ts:58
↓ 1 callersMethodgetCountries
()
chapter-5/src/mediator.ts:69
↓ 1 callersMethodgetProvincesByCountry
(country: string)
chapter-5/src/mediator.ts:73
↓ 1 callersFunctionhello
(name: string)
chapter-1/src/index.ts:3
↓ 1 callersMethodhover
* Bind two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements. * * @param handlerIn A
chapter-6/typings/jquery/jquery.d.ts:2060
↓ 1 callersMethodisFile
()
chapter-4/typings/node/node.d.ts:1180
↓ 1 callersMethodlisten
(port: number, hostname?: string, backlog?: number, callback?: Function)
chapter-4/typings/node/node.d.ts:497
↓ 1 callersMethodonclick
()
chapter-6/src/state.ts:71
↓ 1 callersMethodopen
(name: string)
chapter-4/src/adapter.ts:13
↓ 1 callersMethodoperationX
(target: TTarget)
chapter-6/src/strategy.ts:19
↓ 1 callersMethodoperationY
(target: TTarget)
chapter-6/src/strategy.ts:20
↓ 1 callersMethodparseBody
()
chapter-7/src/event-based-parser.ts:55
↓ 1 callersMethodparseHeader
()
chapter-7/src/event-based-parser.ts:43
↓ 1 callersMethodprepareSyncingRequest
* Prepare synchronizing request that contains data to the server which * describes changes made from this client. * * @return The ge
chapter-2/src/after/client.ts:78
↓ 1 callersMethodprepareSyncingResponse
* Prepare the synchronizing response to the client. * * @param lastTimestamp The timestamp from client that distinguishes * changes
chapter-2/src/after/server.ts:205
↓ 1 callersMethodreadAllBytes
()
chapter-6/src/template-method.ts:32
↓ 1 callersMethodreadUInt32BE
(offset: number, noAssert?: boolean)
chapter-4/typings/node/node.d.ts:400
↓ 1 callersMethodresolve
(id:string)
chapter-4/typings/node/node.d.ts:48
↓ 1 callersMethodrestore
(state: State)
chapter-5/src/momento.ts:11
↓ 1 callersMethodset
(key: string, value: T)
chapter-4/src/adapter.ts:4
↓ 1 callersMethodsetColor
(color: string)
chapter-4/src/decorator.ts:9
↓ 1 callersMethodsetFont
(font: string)
chapter-4/src/decorator.ts:10
↓ 1 callersMethodshould
()
chapter-1/typings/chai/chai.d.ts:16
↓ 1 callersMethodtext
* Get the combined text contents of each element in the set of matched elements, including their descendants.
chapter-6/typings/jquery/jquery.d.ts:2737
↓ 1 callersMethodthrow
(fn: Function, msg?: string)
chapter-1/typings/chai/chai.d.ts:332
↓ 1 callersMethodtoString
()
chapter-6/typings/request/request.d.ts:257
↓ 1 callersMethodtoggleClass
* Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the swi
chapter-6/typings/jquery/jquery.d.ts:1357
↓ 1 callersMethodupdateCityOptions
()
chapter-5/src/mediator.ts:41
↓ 1 callersMethodupdateProvinceOptions
()
chapter-5/src/mediator.ts:32
↓ 1 callersMethodwriteUInt32BE
(value: number, offset: number, noAssert?: boolean)
chapter-4/typings/node/node.d.ts:414
MethodCallbacks
* A multi-purpose callbacks list object that provides a powerful way to manage callback lists. * * @param flags An optional list of space-
chapter-5/typings/jquery/jquery.d.ts:730
next →1–100 of 1,386, ranked by callers