Pages
Introduction
Getting Started
Recipes
Reference
Literals
Arrays
Tuples
Type System
Functions
Modules
Records
Enums
Built-in Types
Constants
Equality
Stores
Routing
Comments
Control Expressions
Components
Properties
Computed Properties
Styling Elements
Connecting Stores
Using Providers
Internal State
Referencing Entities
Global Components
Lifecycle Functions
Directives
JavaScript Interop
Environment Variables
Packages
Documentation Directive
The
@documentation
directive compiles the JSON documentation of the given entity into the
resulting JavaScript code so it can be used to display information about
that entity.
record Component {
name : String
}
try {
decoded =
decode @documentation(Main) as Component
decoded.name
}