From 33bbd16afc73146208677b601e1e5de365e71390 Mon Sep 17 00:00:00 2001 From: Sasha <64744993+r1tsuu@users.noreply.github.com> Date: Tue, 29 Oct 2024 23:07:13 +0200 Subject: [PATCH] string types --- test/_community/payload-types.ts | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/test/_community/payload-types.ts b/test/_community/payload-types.ts index e86442a2b83..74282f914a5 100644 --- a/test/_community/payload-types.ts +++ b/test/_community/payload-types.ts @@ -20,7 +20,7 @@ export interface Config { 'payload-migrations': PayloadMigration; }; db: { - defaultIDType: number; + defaultIDType: string; }; globals: { menu: Menu; @@ -54,7 +54,7 @@ export interface UserAuthOperations { * via the `definition` "posts". */ export interface Post { - id: number; + id: string; text?: string | null; serverTextField?: string | null; richText?: { @@ -97,7 +97,7 @@ export interface Post { * via the `definition` "simple". */ export interface Simple { - id: number; + id: string; text?: string | null; updatedAt: string; createdAt: string; @@ -107,7 +107,7 @@ export interface Simple { * via the `definition` "media". */ export interface Media { - id: number; + id: string; updatedAt: string; createdAt: string; url?: string | null; @@ -151,7 +151,7 @@ export interface Media { * via the `definition` "users". */ export interface User { - id: number; + id: string; updatedAt: string; createdAt: string; email: string; @@ -168,28 +168,28 @@ export interface User { * via the `definition` "payload-locked-documents". */ export interface PayloadLockedDocument { - id: number; + id: string; document?: | ({ relationTo: 'posts'; - value: number | Post; + value: string | Post; } | null) | ({ relationTo: 'simple'; - value: number | Simple; + value: string | Simple; } | null) | ({ relationTo: 'media'; - value: number | Media; + value: string | Media; } | null) | ({ relationTo: 'users'; - value: number | User; + value: string | User; } | null); globalSlug?: string | null; user: { relationTo: 'users'; - value: number | User; + value: string | User; }; updatedAt: string; createdAt: string; @@ -199,10 +199,10 @@ export interface PayloadLockedDocument { * via the `definition` "payload-preferences". */ export interface PayloadPreference { - id: number; + id: string; user: { relationTo: 'users'; - value: number | User; + value: string | User; }; key?: string | null; value?: @@ -222,7 +222,7 @@ export interface PayloadPreference { * via the `definition` "payload-migrations". */ export interface PayloadMigration { - id: number; + id: string; name?: string | null; batch?: number | null; updatedAt: string; @@ -233,7 +233,7 @@ export interface PayloadMigration { * via the `definition` "menu". */ export interface Menu { - id: number; + id: string; globalText?: string | null; updatedAt?: string | null; createdAt?: string | null; @@ -243,7 +243,7 @@ export interface Menu { * via the `definition` "custom-ts". */ export interface CustomT { - id: number; + id: string; custom?: 'hello' | 'world'; withDefinitionsUsage?: ObjectWithNumber[]; json: {