tiny-ulid
Version:
Make and decode ULIDs.
16 lines (15 loc) • 938 B
TypeScript
import { type Ulid, type UlidBuffer } from "./default";
/**
* A shared function used for generating monotonically incrementing {@linkcode UlidBuffer}s.
* Note that if another package or module also imports and uses this function, your monotonically incremented
* `UlidBuffer` may appear to "skip" if they call this function in between your code calling this function. If that's
* fine with you, feel free to use this function out of convenience.
*/
export declare const makeUlidBuffer: () => UlidBuffer;
/**
* A shared function used for generating monotonically incrementing {@linkcode Ulid}s.
* Note that if another package or module also imports and uses this function, your monotonically incremented
* `Ulid` may appear to "skip" if they call this function in between your code calling this function. If that's
* fine with you, feel free to use this function out of convenience.
*/
export declare const makeUlid: () => Ulid;