Skip to content

Uid

Uid = number & object

Defined in: packages/core/src/kernel/types.ts:121

User identity. 0 is root by convention.

readonly __brand: "Uid"

Branded so callers cannot swap uid/gid argument order — both are numeric, silent reversal would defeat the permission model.

import { uid } from '@fishnet/core'
const root = uid(0)

uid