UNPKG

blogger-feeds

Version:
16 lines (15 loc) 449 B
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;