TypeScript Version: 2.5.3
Code
export interface ISlicedTableData {
origin: RawTableData;
}
if (tableData instanceof ISlicedTableData) { // <- compilation error here.
}
Expected behavior:
no compilation error, and ts checks tableData is a implementation of ISlicedTableData or not
Actual behavior:
compilation error: 'ISlicedTableData' only refers to a type, but is being used as a value here.
TypeScript Version: 2.5.3
Code
Expected behavior:
no compilation error, and ts checks
tableDatais a implementation ofISlicedTableDataor notActual behavior: