feat: reduce package size and amount of dependencies by upgrading json-schema-to-typescript (#7938)

Closes https://github.com/payloadcms/payload/issues/7934
This commit is contained in:
Alessio Gravili
2024-08-28 17:59:32 -04:00
committed by GitHub
parent 12fb691e4f
commit dc12047723
39 changed files with 397 additions and 313 deletions

View File

@@ -17,6 +17,9 @@ export interface Config {
'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration;
};
db: {
defaultIDType: string;
};
globals: {
menu: Menu;
};
@@ -28,15 +31,20 @@ export interface Config {
export interface UserAuthOperations {
forgotPassword: {
email: string;
password: string;
};
login: {
password: string;
email: string;
password: string;
};
registerFirstUser: {
email: string;
password: string;
};
unlock: {
email: string;
password: string;
};
}
/**
* This interface was referenced by `Config`'s JSON-Schema
@@ -45,7 +53,7 @@ export interface UserAuthOperations {
export interface Post {
id: string;
text?: string | null;
associatedMedia?: string | Media | null;
associatedMedia?: (string | null) | Media;
updatedAt: string;
createdAt: string;
_status?: ('draft' | 'published') | null;