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

@@ -26,6 +26,9 @@ export interface Config {
'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration;
};
db: {
defaultIDType: string;
};
globals: {};
locale: 'en' | 'es';
user: User & {
@@ -35,15 +38,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
@@ -212,7 +220,7 @@ export interface CyclicalRelationship {
id: string;
title?: string | null;
relationToSelf?: (string | null) | CyclicalRelationship;
media?: string | Media | null;
media?: (string | null) | Media;
updatedAt: string;
createdAt: string;
_status?: ('draft' | 'published') | null;