From aa5e2c71c1038ca9d532c4ede633400fcaa84b46 Mon Sep 17 00:00:00 2001 From: AshGw Date: Sat, 4 May 2024 13:58:16 +0100 Subject: [PATCH] fix: unused import --- README.md | 3 ++- src/decorators.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 91c8f3f6..24eaf211 100644 --- a/README.md +++ b/README.md @@ -231,7 +231,8 @@ foo.requestFoo = () => { // The line below will cause a TypeError: Cannot assign to read only property 'bar' foo.bar = 'not bar' as Bar; ``` - The TypeScript team has not yet introduced a built-in final modifier yet, check [this](https://github.com/microsoft/TypeScript/issues/1534), [this](https://github.com/microsoft/TypeScript/issues/8306), [this](https://github.com/microsoft/TypeScript/issues/50532) and many other requests. + The TypeScript team has not yet introduced a built-in final modifier yet, check +[this](https://github.com/microsoft/TypeScript/issues/8306), [this](https://github.com/microsoft/TypeScript/issues/50532) and many other requests. Although they introduced `override` in [`v4.3`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-3.html#override-and-the---noimplicitoverride-flag) . Decorators like ``@Final`` provide a limited way to emulate final behavior, these are merely band-aids for now, until TS officially supports a true final modifier. diff --git a/src/decorators.ts b/src/decorators.ts index b5d7806a..96c39aea 100644 --- a/src/decorators.ts +++ b/src/decorators.ts @@ -1,4 +1,4 @@ -import { Newable, MaybeUndefined } from './types'; +import { Newable } from './types'; /** * @hidden