save
This commit is contained in:
@@ -44,6 +44,7 @@ export function getDefaultArticle(val: Partial<Article> = {}): Article {
|
||||
textAllWords: [],
|
||||
sections: [],
|
||||
audioSrc: '',
|
||||
audioFileId: '',
|
||||
lrcPosition: [],
|
||||
questions: [],
|
||||
...cloneDeep(val)
|
||||
|
||||
2
src/types/global.d.ts
vendored
2
src/types/global.d.ts
vendored
@@ -2,7 +2,7 @@ declare global {
|
||||
interface Console {
|
||||
parse(v: any): void
|
||||
|
||||
json(v: any, space: number): void
|
||||
json(v: any, space: number): string
|
||||
}
|
||||
|
||||
interface Window {
|
||||
|
||||
@@ -55,7 +55,7 @@ export interface ArticleWord extends Word {
|
||||
nextSpace: boolean,
|
||||
isSymbol: boolean,
|
||||
symbolPosition: 'start' | 'end' | '',
|
||||
input:string
|
||||
input: string
|
||||
}
|
||||
|
||||
export interface Sentence {
|
||||
@@ -75,6 +75,7 @@ export interface Article {
|
||||
textAllWords: string[],
|
||||
sections: Sentence[][],
|
||||
audioSrc: string,
|
||||
audioFileId: string,
|
||||
lrcPosition: number[][],
|
||||
questions: {
|
||||
stem: string,
|
||||
|
||||
Reference in New Issue
Block a user