UNPKG

@jaimermxd/logic-gates

Version:

A simple package introducing logic gates

15 lines (14 loc) 500 B
export declare type Input = boolean[]; export declare type Output = boolean[] | boolean; export declare type TruthTable = Array<(boolean | boolean[])[]>; export declare class BaseGate { input: Input; output: Output; truthTable: TruthTable; constructor(input: Input); static create(input: Input): BaseGate; static getTruthTable(): void; protected setOutput(): void; protected setTruthTable(): void; protected checkInputValidity(input: Input): void; }