Set up initial project and files

This commit is contained in:
Young Lee committed 2025-02-27 14:51:38 -08:00
1 parent be9d1c0f61
commit 8839aac24b
18 files changed
+1754

No files matched your search

+51
View File
@@ -0,0 +1,51 @@
declare module 'rss' {
interface RSSOptions {
title: string;
description: string;
feed_url: string;
site_url: string;
language?: string;
image_url?: string;
docs?: string;
managingEditor?: string;
webMaster?: string;
copyright?: string;
pubDate?: Date;
ttl?: number;
generator?: string;
categories?: string[];
custom_namespaces?: Record<string, string>;
custom_elements?: any[];
}
interface RSSItemOptions {
title: string;
description: string;
url: string;
guid?: string;
categories?: string[];
author?: string;
date?: Date;
lat?: number;
long?: number;
enclosure?: {
url: string;
file?: string;
size?: number;
type?: string;
};
custom_elements?: any[];
}
interface RSSXMLOptions {
indent?: boolean;
}
class RSS {
constructor(options: RSSOptions);
item(options: RSSItemOptions): void;
xml(options?: RSSXMLOptions): string;
}
export = RSS;
}