From 8ff39cbe6300ca479584fe7d85ff03a1f65bc9b0 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 30 Jun 2023 23:23:47 +0200 Subject: WIP move more stuff around + more broken examples --- api/sentence-word.ts | 10 ++++++++++ api/sentence.ts | 3 ++- api/word.ts | 4 ++-- 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 api/sentence-word.ts (limited to 'api') diff --git a/api/sentence-word.ts b/api/sentence-word.ts new file mode 100644 index 0000000..a5bb9ca --- /dev/null +++ b/api/sentence-word.ts @@ -0,0 +1,10 @@ +import Word from "./word.ts"; + +export default class SentenceWord extends Word { + public indexStart: number = 0; + public indexEnd: number = 0; + + constructor() { + super(); + } +} diff --git a/api/sentence.ts b/api/sentence.ts index dc14cb2..6f67844 100644 --- a/api/sentence.ts +++ b/api/sentence.ts @@ -1,9 +1,10 @@ import APIBase from "./base.ts"; +import SentenceWord from "./sentence-word.ts"; import Word from "./word.ts"; import Yomikun from "./yomikun.ts"; export default class Sentence extends APIBase { - public words: Array = []; + public words: Array = []; constructor() { super(); diff --git a/api/word.ts b/api/word.ts index d2df69e..3e8fce6 100644 --- a/api/word.ts +++ b/api/word.ts @@ -2,8 +2,8 @@ import Glossary from "./glossary.ts"; import APIBase from "./base.ts"; export default class Word extends APIBase { - public writing: string = "TODO"; - public reading: string = "TODO"; + public writing = "TODO"; + public reading = "TODO"; constructor() { super(); -- cgit v1.2.3