better-word-count/src/stats/Stats.ts

39 lines
737 B
TypeScript
Raw Normal View History

2022-11-10 15:23:23 +00:00
export interface VaultStatistics {
history: History;
modifiedFiles: ModifiedFiles;
}
export type History = Record<string, Day>;
export interface Day {
words: number;
characters: number;
sentences: number;
2023-02-08 21:12:36 +00:00
pages: number;
2022-11-10 15:23:23 +00:00
files: number;
footnotes: number;
citations: number;
2022-11-10 15:23:23 +00:00
totalWords: number;
totalCharacters: number;
totalSentences: number;
totalFootnotes: number;
totalCitations: number;
2023-02-08 21:12:36 +00:00
totalPages: number;
2022-11-10 15:23:23 +00:00
}
export type ModifiedFiles = Record<string, FileStat>;
export interface FileStat {
footnotes: CountDiff;
citations: CountDiff;
2022-11-10 15:23:23 +00:00
words: CountDiff;
characters: CountDiff;
sentences: CountDiff;
2023-02-08 21:12:36 +00:00
pages: CountDiff;
2022-11-10 15:23:23 +00:00
}
export interface CountDiff {
initial: number;
current: number;
}