JA
ベータ版の翻訳

@core / contracts

1.0.0 ▾
認証済みMIT
GitHub

GenPM モジュール共通の型:コンテンツ、サイトマップ、検索、管理リソース、決済、イベント

コード10 ファイルコンテキスト約 532 トークンスキャン合格

.genpmignore 適用後に組み込まれる正確なツリーです。固定先:

src/lib/contracts/sitemap.ts読み取り専用 · 7266529
// Fuente de URLs para sitemap.xml: la implementan content, blog, catalog…; la consume @core/seo.

export type SitemapUrl = {
  /** Ruta absoluta del sitio (`/blog/hola`) o URL completa. */
  loc: string;
  lastmod?: Date;
  /** Versiones en otros idiomas: locale BCP 47 → ruta o URL (genera `hreflang`). */
  alternates?: Record<string, string>;
  changefreq?: 'always' | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly' | 'never';
  /** 0.0–1.0 */
  priority?: number;
};

export type SitemapSource = {
  /** Nombre único de la fuente (`pages`, `blog`, `products`); da nombre a su trozo del índice. */
  name: string;
  urls(): AsyncIterable<SitemapUrl>;
};

export const defineSitemapSource = (source: SitemapSource): SitemapSource => source;

@core/contracts を報告

パッケージを報告するには GitHub でログインしてください。

GitHub で続ける