Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvNC committed Feb 2, 2024
2 parents 1885e01 + 981449f commit 16d41aa
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/types/yomitan/termbankmeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type TermFrequency =
};

type FrequencyTerm = [
{},
string,
'freq',
(
| TermFrequency
Expand All @@ -26,15 +26,27 @@ type PitchAccentInfo = {
};

type PitchTerm = [
{},
string,
'pitch',
{
reading: string;
pitches: PitchAccentInfo[];
},
];

type TermMetaEntryType = PitchTerm | FrequencyTerm;
type TermPhoneticTranscription = [
string,
'ipa',
{
reading: string;
transcriptions: {
ipa: string;
tags?: string[];
}[];
},
];

type TermMetaEntryType = PitchTerm | FrequencyTerm | TermPhoneticTranscription;
type DictionaryTermMetaBankV3 = TermMetaEntryType[];

export type {
Expand Down

0 comments on commit 16d41aa

Please sign in to comment.