blogger-feeds
Version:
Read-only utilities and client for Blogger feeds
16 lines (15 loc) • 449 B
TypeScript
import { type SingleMeta, type PagedMeta, type Post } from '../client';
export type FeedKey = '*' | keyof PagedMeta | keyof SingleMeta | keyof Post;
export type FeedData = ({
meta: Partial<SingleMeta>;
data: [Partial<Post>];
} | {
meta: Partial<PagedMeta>;
data: Partial<Post>[];
}) & {
type: 'data';
};
export type ReadConf = {
keep?: '*' | FeedKey[];
};
export declare const reader: (raw: any, conf: ReadConf) => FeedData;