diff options
Diffstat (limited to 'api')
| -rw-r--r-- | api/sentence.ts | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/api/sentence.ts b/api/sentence.ts index 2311913..f1d5521 100644 --- a/api/sentence.ts +++ b/api/sentence.ts @@ -61,6 +61,12 @@ export default class Sentence extends APIBase {  		}, "");  	} +	get reading(): string { +		return this.words.reduce((out, word) => { +			return out + word.reading; +		}, ""); +	} +  	public async forceUpdate() {      // unresolve ready  		this.ready = new Promise(res => this._resolveReady = res); |