mirror of
https://github.com/panatgithub/AnkiHeadingSync.git
synced 2026-07-22 06:51:43 +00:00
15 lines
No EOL
405 B
TypeScript
15 lines
No EOL
405 B
TypeScript
import type { CardType } from "@/domain/card/entities/RenderedFields";
|
|
|
|
export interface NoteModelFieldMapping {
|
|
cardType: CardType;
|
|
modelName: string;
|
|
loadedFieldNames: string[];
|
|
titleField?: string;
|
|
bodyField?: string;
|
|
mainField?: string;
|
|
loadedAt: number;
|
|
}
|
|
|
|
export function createNoteFieldMappingKey(cardType: CardType, modelName: string): string {
|
|
return `${cardType}:${modelName}`;
|
|
} |