@axium/server 0.35.1 → 0.35.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/database.d.ts +4 -2
- package/package.json +1 -1
package/dist/database.d.ts
CHANGED
|
@@ -531,8 +531,10 @@ type _DBFromSchema<TBs extends Record<string, z.input<typeof Table>>> = {
|
|
|
531
531
|
/**
|
|
532
532
|
* Convert an entire schema definition file info the Kysely database schema type
|
|
533
533
|
*/
|
|
534
|
-
export type
|
|
535
|
-
|
|
534
|
+
export type FromSchemaFile<S extends ReadonlyRecursive<z.input<typeof SchemaFile>>> = _DBFromSchema<FullSchema<MutableRecursive<S>>['tables']>;
|
|
535
|
+
/**@deprecated use {@link FromSchemaFile} */
|
|
536
|
+
export type DatabaseFromSchemaFile<S extends ReadonlyRecursive<z.input<typeof SchemaFile>>> = FromSchemaFile<S>;
|
|
537
|
+
type RawDB = FromSchemaFile<typeof rawSchema>;
|
|
536
538
|
export interface Schema extends Omit<RawDB, 'users' | 'verifications' | 'passkeys'> {
|
|
537
539
|
users: Expand<RawDB['users'] & {
|
|
538
540
|
preferences: kysely.Generated<Preferences>;
|