MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / genId

Function genId

web/src/components/ui/use-toast.ts:20–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18let count = 0
19
20function genId() {
21 count = (count + 1) % Number.MAX_SAFE_INTEGER
22 return count.toString()
23}
24
25type ActionType = {
26 readonly ADD_TOAST: 'ADD_TOAST'

Callers 1

toastFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected