Migrate from typedef to explicit-function-return-type

This commit is contained in:
Daniel Imms
2020-03-28 07:10:08 -07:00
parent 8475f95b19
commit 2e9b4779c9
4 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ export const VT500_TRANSITION_TABLE = (function (): TransitionTable {
// range macro for byte
const BYTE_VALUES = 256;
const blueprint = Array.apply(null, Array(BYTE_VALUES)).map((unused: any, i: number) => i);
const r = (start: number, end: number) => blueprint.slice(start, end);
const r = (start: number, end: number): number[] => blueprint.slice(start, end);
// Default definitions.
const PRINTABLES = r(0x20, 0x7f); // 0x20 (SP) included, 0x7F (DEL) excluded