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 | 14x 2x 2x 2x 2x 14x 7x | /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
import { PackTypeEnum } from "./enums";
export interface PackInterface {
code: string;
name: string;
type: PackTypeEnum;
releaseDate: string;
}
export class Pack implements PackInterface {
public code: string;
public name: string;
public type: PackTypeEnum;
public releaseDate: string;
public constructor(data: PackInterface) {
this.code = data.code;
this.name = data.name;
this.type = data.type;
this.releaseDate = data.releaseDate;
}
}
// 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;
/* eslint-enable @typescript-eslint/explicit-module-boundary-types */
|