StackLatestPackagesStackSrcTypes publicType aliases
EncryptedFields
EncryptedFields is a type in @cipherstash/stack. TypeScript API reference with its signature, parameters, and usage.
Type Alias: EncryptedFields<T>
type EncryptedFields<T> = { [K in keyof T as NonNullable<T[K]> extends Encrypted ? K : never]: T[K] };Defined in: packages/stack/src/types.ts:152
Type Parameters
T
T
Encrypted
Structural type representing encrypted data stored in the database. Always carries a ciphertext. See also `EncryptedValue` for branded nominal typing, and En...
EncryptedFromSchema
Maps a plaintext model type to its encrypted form using the table schema. Fields whose keys match columns defined in `S` become `Encrypted`; all other field...