Skip to content
Snippets Groups Projects
label-interfaces.ts 410 B
Newer Older
  • Learn to ignore specific revisions
  • export interface TextLabel {
      text: string;
    }
    
    export interface TextImageLabel extends TextLabel {
      imgSrc: string | null;
      imgPosition: 'above' | 'below' | 'left' | 'right';
    }
    
    export interface DragNDropValueObject extends TextImageLabel {
      id: string;
      originListID: string;
      originListIndex: number;
    
      audioSrc: string | null;
    
    }
    
    export type Label = TextLabel | TextImageLabel | DragNDropValueObject;