refactor: unwrap Identifier namespace + self-reexport (#22963)
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import z from "zod"
|
||||
import { randomBytes } from "crypto"
|
||||
|
||||
export namespace Identifier {
|
||||
const prefixes = {
|
||||
event: "evt",
|
||||
session: "ses",
|
||||
@@ -83,4 +82,5 @@ export namespace Identifier {
|
||||
const encoded = BigInt("0x" + hex)
|
||||
return Number(encoded / BigInt(0x1000))
|
||||
}
|
||||
}
|
||||
|
||||
export * as Identifier from "./id"
|
||||
|
||||
Reference in New Issue
Block a user