From 2c0610223201705b85d20fd72f1e7e9c565aff8b Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 25 Mar 2023 12:55:08 -0400 Subject: [PATCH] Add some `extends object` constraints to type parameters to fix errors. --- src/core/Form.ts | 2 +- src/core/Line.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/Form.ts b/src/core/Form.ts index 5d03a2f..3893fae 100644 --- a/src/core/Form.ts +++ b/src/core/Form.ts @@ -9,7 +9,7 @@ import * as Trace from './Trace'; import { Line } from './Line'; import { InconsistencyError, NotFoundError } from './Errors'; -export default abstract class Form { +export default abstract class Form { abstract readonly name: string; abstract readonly lines: { [key: string]: Line }; diff --git a/src/core/Line.ts b/src/core/Line.ts index 46d0fe0..27b48b7 100644 --- a/src/core/Line.ts +++ b/src/core/Line.ts @@ -117,7 +117,7 @@ export class SymbolicLine extends Line { +export class InputLine extends Line { private _input: T; private _fallback: U[T]; -- 2.43.5