@tai-kun/surrealdb
Version:
The SurrealDB SDK for JavaScript
25 lines • 977 B
TypeScript
import { Uuid as Base, type UuidSource } from "@tai-kun/surrealdb/encodable-datatypes";
export type * from "../encodable/uuid";
export type UuidVariant = "NIL" | "MAX" | "NCS" | "RFC" | "MS" | "RESERVED";
export type UuidVersion = 1 | 2 | 3 | 4 | 5 | 6 | 7;
/**
* [API Reference](https://tai-kun.github.io/surrealdb.js/v2/api/data/uuid)
*/
export default class Uuid extends Base {
protected _variant: UuidVariant | undefined;
protected _version: UuidVersion | null | undefined;
protected _timestamp: number | null | undefined;
get bytes(): Uint8Array;
set bytes(v: Uint8Array);
constructor(source: UuidSource | string);
get variant(): UuidVariant;
get version(): UuidVersion | null;
get timestamp(): number | null;
clone(): this;
compareTo(other: {
readonly bytes: Uint8Array;
readonly version: UuidVersion | null;
readonly timestamp?: number | null;
}): -1 | 0 | 1;
}
//# sourceMappingURL=uuid.d.ts.map