Typescript classes: Difference between revisions
From wikinotes
(Created page with "= Example = <blockquote> <syntaxhighlight lang="typescript"> class User { id: string; constructor(name: string) { this.id = "12345"; } } let user = new User("vaderd"); </syntaxhighlight> </blockquote><!-- Example -->") |
No edit summary |
||
Line 1: | Line 1: | ||
= Documentation = | |||
<blockquote> | |||
{| class="wikitable" | |||
|- | |||
| official docs || https://www.typescriptlang.org/docs/handbook/2/classes.html | |||
|- | |||
|} | |||
</blockquote><!-- Documentation --> | |||
= Example = | = Example = | ||
<blockquote> | <blockquote> |
Latest revision as of 01:01, 17 December 2022
Documentation
official docs https://www.typescriptlang.org/docs/handbook/2/classes.html
Example
class User { id: string; constructor(name: string) { this.id = "12345"; } } let user = new User("vaderd");