MCPcopy Create free account
hub / github.com/anomalyco/opencode / ascending

Function ascending

packages/app/src/utils/id.ts:16–18  ·  view source on GitHub ↗
(prefix: Prefix, given?: string)

Source from the content-addressed store, hash-verified

14type Prefix = keyof typeof prefixes
15export namespace Identifier {
16 export function ascending(prefix: Prefix, given?: string) {
17 return generateID(prefix, false, given)
18 }
19
20 export function descending(prefix: Prefix, given?: string) {
21 return generateID(prefix, true, given)

Callers

nothing calls this directly

Calls 1

generateIDFunction · 0.70

Tested by

no test coverage detected