All files / src/entities draft_preview_layer.ts

100% Statements 14/14
100% Branches 0/0
100% Functions 1/1
100% Lines 12/12

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 221x 1x 1x   1x 1x 1x 1x   1x     1x     1x     1x   1x  
import { Entity } from '../entity.js';
import { DraftPreview } from './draft_preview.js';
import { DraftTemplate } from './draft_template.js';
 
export class DraftPreviewLayer extends Entity {
  protected static resourceName = 'draft_preview_layers';
  protected static singularName = 'draftPreviewLayer';
  protected static pluralName = 'draftPreviewLayers';
 
  @DraftPreviewLayer.property()
  public id?: number;
 
  @DraftPreviewLayer.property({type: String})
  public layerName?: string;
 
  @DraftPreviewLayer.property({type: DraftPreview})
  public draftPreview?: DraftPreview;
 
  @DraftPreviewLayer.property({type: DraftTemplate})
  public draftTemplate?: DraftTemplate;
}