From c52c8f4c76ed531e826ca65bff9d0f20175344e9 Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Sun, 6 Jun 2021 12:05:51 +0100 Subject: [PATCH] Fix typing --- lib/code/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/code/index.ts b/lib/code/index.ts index 2e54e6303..92c2bfcf5 100644 --- a/lib/code/index.ts +++ b/lib/code/index.ts @@ -1,4 +1,4 @@ -import { Shape } from 'types' +import { Mutable, Shape } from 'types' import shapeUtilityMap, { createShape, getShapeUtils, @@ -15,11 +15,11 @@ export const codeShapes = new Set>([]) * shape map, while deleting it removes it from the collected shapes set */ export default class CodeShape { - private _shape: T + private _shape: Mutable private utils: ShapeUtility constructor(props: T) { - this._shape = createShape(props.type, props) as T + this._shape = createShape(props.type, props) as Mutable this.utils = getShapeUtils(this._shape) codeShapes.add(this) }