Skip to content

SubjectInput

SubjectInput<TTables> = DrizzleTable | TableName<TTables> | "all"

Defined in: packages/permissions/src/types.ts:83

The set of acceptable subject inputs for a grant or can() check.

  • A DrizzleTable object reference (the original form, always allowed).
  • A string-literal table name from TableName — either the JS schema key ("postVersions") or the SQL table name ("post_versions") — both resolve to the same underlying table at runtime.
  • The literal "all" for grants that apply to every table.

TTables extends SchemaMap = SchemaMap