ES

@core / content

1.1.0 ▾
verificadoMIT
GitHub

Núcleo de CMS headless: colecciones y singletons tipados con borradores, revisiones, programación, idiomas y vista previa

Código11 archivosContexto~1,2 mil tokensescaneo superado

El árbol exacto que se inyectará, tras aplicar .genpmignore. Anclado a

src/lib/content/index.tssolo lectura · 23978fe
// @core/content — API pública. Importa desde aquí; vista previa para Next.js en adapters/next.ts.
export { type ContentAdminRow, contentAdminResource } from './admin.ts';
export {
  archive,
  type CreateEntryInput,
  createEntry,
  deleteEntry,
  getEntryById,
  listRevisions,
  migrateEntries,
  publish,
  publishScheduledJob,
  renameEntry,
  restore,
  restoreRevision,
  saveDraft,
  schedulePublish,
  seedEntry,
  unpublish,
  unschedule,
} from './entries.ts';
export { createPreviewToken, type PreviewClaims, safePath, verifyPreviewToken } from './preview.ts';
export { contentSource, countEntries, type EntryListQuery, getEntry, getSingleton, listEntries, reader } from './read.ts';
export {
  assertSlug,
  type Collection,
  type CollectionOptions,
  ContentError,
  type ContentErrorCode,
  clearCollections,
  defaultLocale,
  defineCollection,
  defineSingleton,
  getCollection,
  listCollections,
  SINGLETON_SLUG,
  slugify,
} from './registry.ts';
export { type ContentRevision, type ContentRow, contentEntries, contentRevisions } from './schema.ts';
export { contentSearchSource, contentSitemapSource } from './sources.ts';

Reportar @core/content

Inicia sesión con GitHub para reportar un paquete.