diff --git a/apps/roboshield/package.json b/apps/roboshield/package.json index 043bccbb6..06327db69 100644 --- a/apps/roboshield/package.json +++ b/apps/roboshield/package.json @@ -1,6 +1,6 @@ { "name": "roboshield", - "version": "0.1.5", + "version": "0.1.6", "private": true, "scripts": { "build-server": "tsc --project tsconfig.server.json", diff --git a/apps/roboshield/payload-types.ts b/apps/roboshield/payload-types.ts index 6928f0159..9ca401cb1 100644 --- a/apps/roboshield/payload-types.ts +++ b/apps/roboshield/payload-types.ts @@ -414,7 +414,3 @@ export interface SettingsSite { updatedAt?: string | null; createdAt?: string | null; } - -declare module "payload" { - export interface GeneratedTypes extends Config {} -} diff --git a/apps/roboshield/payload.config.ts b/apps/roboshield/payload.config.ts index ed46ab712..487f2b6da 100644 --- a/apps/roboshield/payload.config.ts +++ b/apps/roboshield/payload.config.ts @@ -13,6 +13,7 @@ import { s3Adapter } from "@payloadcms/plugin-cloud-storage/s3"; import Users from "./src/payload/collections/Users"; import { defaultLocale, locales } from "./src/payload/utils/locales"; import { loadEnvConfig } from "@next/env"; +import { Config } from "./payload-types"; const projectDir = process.cwd(); loadEnvConfig(projectDir); @@ -122,4 +123,11 @@ export default buildConfig({ }), ] as any[], telemetry: process?.env?.NODE_ENV !== "production", + typescript: { + declare: false, // defaults to true if not set + }, }); + +declare module "payload" { + export interface PayloadGeneratedTypes extends Config {} +}