Skip to content

Commit

Permalink
chore: correct typo
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainLanz committed Apr 10, 2024
1 parent 922ffe9 commit c910be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -86,7 +86,7 @@ This property can define the dependencies for the class methods (including the c
### TypeScript to the rescue

Wait, you can use decorators with combination of TypeScript's [emitDecoratorMetaData](https://www.typescriptlang.org/tsconfig#emitDecoratorMetadata) option to perform reflection. You will also need to install [`reflect-metadata`](https://www.npmjs.com/package/reflect-metadata) in order for TypeScript to exract metadata from your classes.
Wait, you can use decorators with combination of TypeScript's [emitDecoratorMetaData](https://www.typescriptlang.org/tsconfig#emitDecoratorMetadata) option to perform reflection. You will also need to install [`reflect-metadata`](https://www.npmjs.com/package/reflect-metadata) in order for TypeScript to extract metadata from your classes.

It is worth noting, TypeScript decorators are not as powerful as the reflection API in other languages. For example, in PHP, you can use interfaces for reflection. Whereas in TypeScript, you cannot.

Expand Down

0 comments on commit c910be0

Please sign in to comment.