From 40581772dfb93a29e9a60124fcd0e8cf8653ba27 Mon Sep 17 00:00:00 2001 From: AshGw Date: Wed, 1 May 2024 20:59:14 +0100 Subject: [PATCH] ci(#58): add `codecov` --- README.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 953483ef..796e4967 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,12 @@ 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. +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. + + You can also [seal](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/seal) an object. ```ts @Sealed @@ -125,13 +131,6 @@ john.age = 31; // No Errors delete john.age; // TypeError: Cannot delete property 'age' ``` -There are many other decorators to choose from, check the [docs](#documentation) for more info. - -Speaking of `final`, 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. -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. - ## Changelog See [releases](https://github.com/ashgw/ts-roids/releases).