Skip to content

Instantly share code, notes, and snippets.

View heniotierra's full-sized avatar
🏠
Working from home

heniotierra

🏠
Working from home
View GitHub Profile
@SerafimArts
SerafimArts / Annotation.js
Last active October 24, 2023 22:47
JavaScript Annotations example
import Reader from './Reader';
import Target from './Target';
/**
* This is default annotation property for automatic type casting:
* <code>
* @Annotation({ some: any })
* // => will be casts "as is" {some: any}
*
* @Annotation("any")