@decorator

Generated Markdown for references/fact_dec_decorator.md.

Open book page Back to the skill graph

# @decorator

`@decorator("name")` makes a type the schema for a user-defined `@name` decorator's arguments. This lets you declare your own decorators with typed, validated arguments rather than relying only on the built-in set.

```wcl
@decorator("range") type Range {
  @inline(0) min: i64
  @inline(1) max: i64
}

@block("field") type Field {
  @range(0, 100) score: i64
}
```

## Related

- [@block]../references/fact_dec_block.md

- [Block Schema]../references/concept_block_schema.md

[← Back to SKILL.md]../SKILL.md