@epilogo/stringifyr
Version:
Stringifyr JS bundle
21 lines (20 loc) • 561 B
TypeScript
type TApiParams = {
apiKey: string;
baseURL?: string;
};
type TStringsByTemplateParams = {
template?: string;
fileSlug?: string;
__incUnpublished?: boolean;
};
export type TString = {
value: string | undefined;
type: 'text' | 'json' | 'html' | 'markdown';
};
export declare class Api {
private readonly params;
constructor(params: TApiParams);
setParams(params: Partial<TApiParams>): void;
stringGet({ template, fileSlug, __incUnpublished }?: TStringsByTemplateParams): Promise<Record<string, TString>>;
}
export {};