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 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | /* eslint-disable @typescript-eslint/explicit-module-boundary-types */ import { PackTypeEnum } from "./enums"; export interface PackInterface { code: string; name: string; type: PackTypeEnum; releaseDate: string; owned: boolean; } export class Pack implements PackInterface { public code: string; public name: string; public type: PackTypeEnum; public releaseDate: string; public owned: boolean; public constructor(data: PackInterface) { this.code = data.code; this.name = data.name; this.type = data.type; this.releaseDate = data.releaseDate; this.owned = data.owned; } } // eslint-disable-next-line @typescript-eslint/no-explicit-any export const isPack = (value: any): value is Pack => value.code !== undefined && value.name !== undefined && value.type !== undefined && value.releaseDate !== undefined && value.owned !== undefined; /* eslint-enable @typescript-eslint/explicit-module-boundary-types */ |