@notatki/preview
Version:
A collection of tools for creating and syncing Anki notes from simple text files.
22 lines (20 loc) • 421 B
text/typescript
export type PreviewOptions = {
title: string;
showDetails: boolean;
showFront: boolean;
showBack: boolean;
};
export function expandPreviewOptions(options: Partial<Readonly<PreviewOptions>>): PreviewOptions {
const {
title = "Cards Preview", //
showDetails = true,
showFront = false,
showBack = true,
} = options;
return {
title, //
showDetails,
showFront,
showBack,
};
}