Package for Payload CMS types.
npm install @glidevvr/storage-payload-types-pkg
Provides the latest payload-types.ts generated from a Payload CMS instance.
This package is designed for use with Next.js Storage Themes built on top of Payload CMS and serves as a type-safe contract between your CMS backend and frontend consumers.
- ✅ Automatically updated types on every new Payload CMS deployment
- ✅ Written in TypeScript
- ✅ No dependencies
- ✅ Easy to consume in any Next.js app
bash
npm install @glidevvr/storage-payload-types-pkg
`📘 Usage
Once installed, simply import the types into your Next.js app:
`bash
// Example usage:
import { Media, Page } from '@glidevvr/storage-payload-types-pkg';
``This package is automatically updated via CI through the BitBucket pipeline when the Payload CMS schema changes after a successful build on the gli-payload-multitenant master branch. You’ll always get the latest types with a simple version bump.
payload-types.ts – Generated using payload generate:types
This package assumes you are using:
Payload CMS v3.0+
Next.js (or another modern TypeScript-based frontend)
ISC © Go Local Interactive