アノテーションデータ
構文 | 値 |
---|---|
foo | @foo {} |
foo("hello") | @foo {"value" : "hello"} |
foo(bar=23) | @foo {"bar" : 23} |
foo(baz="hello", zot=false) | @foo{"baz":"hello", "zot":false} |
@[internal]
type AnnotationBase = @* {
"$description" : string? ,
"$predefined" : {*:any?}? ,
* : any?
};@[annotation]
type foo = @foo {
"baz" : string,
"zot" : boolean?
} & AnnotationBase;