variable / @typed/id/Uuid7

isUuid7

Tests whether a string is an RFC UUID version 7 value.

Package version
1.0.0-beta.13
Category
ID validation
Since
1.0.0

Import

import { isUuid7 } from "@typed/id/Uuid7";

Signatures

export declare const isUuid7: (value: string) => value is Uuid7;

Why

Runtime refinement restores trust after serialization has erased the TypeScript brand.

Ownership and lifetime

This pure predicate acquires no resources and retains no input.

Examples

import { isUuid7 } from "@typed/id/Uuid7"
const valid = isUuid7("01890f2e-7d6c-7cc0-98c4-dc0c0c07398f")

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source