feedsmith
Version:
Fast, all‑in‑one feed parser and generator for RSS, Atom, RDF, and JSON Feed, with support for Podcast, iTunes, Dublin Core, and OPML files.
51 lines • 2.39 kB
TypeScript
import { DateLike } from "../../../common/types.js";
//#region src/namespaces/dc/common/types.d.ts
declare namespace DcNs {
type ItemOrFeed<TDate extends DateLike> = {
titles?: Array<string>;
creators?: Array<string>;
subjects?: Array<string>;
descriptions?: Array<string>;
publishers?: Array<string>;
contributors?: Array<string>;
dates?: Array<TDate>;
types?: Array<string>;
formats?: Array<string>;
identifiers?: Array<string>;
sources?: Array<string>;
languages?: Array<string>;
relations?: Array<string>;
/** @deprecated Use `titles` (array) instead. Dublin Core fields are repeatable. */
title?: string;
/** @deprecated Use `creators` (array) instead. Dublin Core fields are repeatable. */
creator?: string;
/** @deprecated Use `subjects` (array) instead. Dublin Core fields are repeatable. */
subject?: string;
/** @deprecated Use `descriptions` (array) instead. Dublin Core fields are repeatable. */
description?: string;
/** @deprecated Use `publishers` (array) instead. Dublin Core fields are repeatable. */
publisher?: string;
/** @deprecated Use `contributors` (array) instead. Dublin Core fields are repeatable. */
contributor?: string;
/** @deprecated Use `dates` (array) instead. Dublin Core fields are repeatable. */
date?: TDate;
/** @deprecated Use `types` (array) instead. Dublin Core fields are repeatable. */
type?: string;
/** @deprecated Use `formats` (array) instead. Dublin Core fields are repeatable. */
format?: string;
/** @deprecated Use `identifiers` (array) instead. Dublin Core fields are repeatable. */
identifier?: string;
/** @deprecated Use `sources` (array) instead. Dublin Core fields are repeatable. */
source?: string;
/** @deprecated Use `languages` (array) instead. Dublin Core fields are repeatable. */
language?: string;
/** @deprecated Use `relations` (array) instead. Dublin Core fields are repeatable. */
relation?: string;
/** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core fields are repeatable. */
coverage?: string;
/** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core fields are repeatable. */
rights?: string;
};
}
//#endregion
export { DcNs };