MCPcopy Create free account
hub / github.com/TanStack/hotkeys / getInstance

Method getInstance

packages/hotkeys/src/sequence-manager.ts:200–205  ·  view source on GitHub ↗

* Gets the singleton instance of SequenceManager.

()

Source from the content-addressed store, hash-verified

198 * Gets the singleton instance of SequenceManager.
199 */
200 static getInstance(): SequenceManager {
201 if (!SequenceManager.#instance) {
202 SequenceManager.#instance = new SequenceManager()
203 }
204 return SequenceManager.#instance
205 }
206
207 /**
208 * Resets the singleton instance. Useful for testing.

Callers 1

getSequenceManagerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected