@glidevvr/storage-payload-types-pkg
v1.0.234
Published
Package for Payload CMS types.
Readme
@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.
✨ Features
✅ Automatically updated types on every new Payload CMS deployment
✅ Written in TypeScript
✅ No dependencies
✅ Easy to consume in any Next.js app
📦 Installation
npm install @glidevvr/storage-payload-types-pkg📘 Usage
Once installed, simply import the types into your Next.js app:
// Example usage:
import { Media, Page } from '@glidevvr/storage-payload-types-pkg';The specific exports depend on how the Payload CMS config is structured and what types are included in the payload-types.ts file.
🔄 Auto-updates
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.
📁 File Contents
payload-types.ts – Generated using payload generate:types
🛠️ Requirements
This package assumes you are using:
Payload CMS v3.0+
Next.js (or another modern TypeScript-based frontend)
📄 License
ISC © Go Local Interactive
Change Log
1.0.3 - Add README.md

