Easy
What type of decorator is used to add metadata to a class?
Author: Vincent CotroStatus: PublishedQuestion passed 540 times
Edit
0
Community Evaluations
Incorrect answer
Grégory26/04/2024
Je ne trouve aucune doc au sujet de ce décorateur, il y a visiblement une librairie "Reflect Metadata", qui se base par ailleurs sur une feature expérimental mais rien de plus.
Très honnêtement cette question n'a pas beaucoup de sens, TypeScript n'inclut aucun décorateur par défaut.
Similar QuestionsMore questions about Typescript
5
Write a function in TypeScript that takes a number as input and returns its square.5
Import an add function from a TypeScript module math.ts4
Which of the following utility types makes all properties of a given type optional?4
Define a custom type that represents a coordinate with an x and y property of type number in Typescript4
Create a generic reverseArray function to reverse the elements of an array while maintaining type safety.