import { IType } from "./itype"; export class Type implements IType { constructor(public value: String, public ord: number) { } stringInfo () { return [{type: this.value, dim: 0}]; } isCompatible (another: IType) { return this.value === another.value && this.ord === another.ord; } }