Typescript Example #1.

// An example of generics in TypeScript.
class Option<T> {
constructor(v:T|null=null) { this.value = v; }
readonly value:T|null;
}


This content originally appeared on DEV Community and was authored by Calin Baenen

// An example of generics in TypeScript.
class Option<T> {
    constructor(v:T|null=null) { this.value = v; }
    readonly value:T|null;
}


This content originally appeared on DEV Community and was authored by Calin Baenen


Print Share Comment Cite Upload Translate Updates
APA

Calin Baenen | Sciencx (2021-11-07T05:59:15+00:00) Typescript Example #1.. Retrieved from https://www.scien.cx/2021/11/07/typescript-example-1/

MLA
" » Typescript Example #1.." Calin Baenen | Sciencx - Sunday November 7, 2021, https://www.scien.cx/2021/11/07/typescript-example-1/
HARVARD
Calin Baenen | Sciencx Sunday November 7, 2021 » Typescript Example #1.., viewed ,<https://www.scien.cx/2021/11/07/typescript-example-1/>
VANCOUVER
Calin Baenen | Sciencx - » Typescript Example #1.. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/11/07/typescript-example-1/
CHICAGO
" » Typescript Example #1.." Calin Baenen | Sciencx - Accessed . https://www.scien.cx/2021/11/07/typescript-example-1/
IEEE
" » Typescript Example #1.." Calin Baenen | Sciencx [Online]. Available: https://www.scien.cx/2021/11/07/typescript-example-1/. [Accessed: ]
rf:citation
» Typescript Example #1. | Calin Baenen | Sciencx | https://www.scien.cx/2021/11/07/typescript-example-1/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.