Skip to content

Commit 4253bba

Browse files
authored
Merge pull request #258 from Gerrit0/patch-1
Mention TypeScript's override keyword
2 parents 5b3a367 + 11c3fcb commit 4253bba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

websites/tsdoc.org/docs/pages/tags/override.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ This modifier has similar semantics to the `override` keyword in C# or Java. For
1515
explicitly indicates that this definition is overriding (i.e. redefining) the definition inherited from the
1616
base class. The base class definition would normally be marked as `virtual`.
1717

18+
TypeScript's [override keyword](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-3.html#override-and-the---noimplicitoverride-flag)
19+
should be preferred over the `@override` tag, unless documentation is being generated from declaration files.
20+
1821
A documentation tool may enforce that the `@virtual`, `@override`, and/or `@sealed` modifiers are consistently
1922
applied, but this is not required by the TSDoc standard.
2023

0 commit comments

Comments
 (0)