UNPKG

zenstack

Version:

FullStack enhancement for Prisma ORM: seamless integration from database to UI

7 lines (6 loc) 327 B
import { DataModel, TypeDef, type Model } from '@zenstackhq/sdk/ast'; /** * Generate types for typing the `user` context object passed to the `enhance` call, based * on the fields (potentially deeply) access through `auth()`. */ export declare function generateAuthType(model: Model, authDecl: DataModel | TypeDef): string;