Skip to content

AuthSlugs

AuthSlugs = GeneratedVexTypes extends object ? A : object

Defined in: packages/core/src/types/generated.ts:397

The collection slugs defineAccess was configured with, as emitted by vex generate from vex.config.ts.

  • Before vex generate: both resolve to never.
  • After: e.g. { user: "user"; organization: "organization" }.

This exists so core can resolve the project’s user and organization DOCUMENT types without a project passing them in. It is what lets AccessCheck<S> take one type parameter instead of three, so a project’s composable access checks need no local type aliases at all.

GeneratedVexTypes for the augmentation interface