mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
feat(reader): add dictionary lookup to epub reader selection popup
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
export interface DictionaryDefinition {
|
||||
definition: string;
|
||||
example?: string | null;
|
||||
}
|
||||
|
||||
export interface DictionaryEntry {
|
||||
partOfSpeech: string;
|
||||
definitions: DictionaryDefinition[];
|
||||
}
|
||||
|
||||
export interface DictionaryResult {
|
||||
word: string;
|
||||
phonetic: string | null;
|
||||
audioUrl: string | null;
|
||||
entries: DictionaryEntry[];
|
||||
provider: "free-dictionary" | "wiktionary";
|
||||
}
|
||||
@@ -34,3 +34,4 @@ export * from "./table-layout";
|
||||
export * from "./series-collapse";
|
||||
export * from "./entity-manager";
|
||||
export * from "./font";
|
||||
export * from "./dictionary";
|
||||
|
||||
Reference in New Issue
Block a user