KO
베타 번역

@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로 로그인하세요.