Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/content/wiki/annotations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -390,12 +390,12 @@ print(x) --> x:string?

### @class

Define a class. Can be used with [`@field`](#field) to define a table structure. Once a class is defined, it can be used as a type for [parameters](#param), [returns](#return), and more. A class can also inherit from a parent class. Marking the class as `(exact)` means fields cannot be injected after the definition.
Define a class. Can be used with [`@field`](#field) to define a table structure. Once a class is defined, it can be used as a type for [parameters](#param), [returns](#return), and more. A class can also inherit one or more parent classes. Marking the class as `(exact)` means fields cannot be injected after the definition.

**Syntax**

<div class="syntax">
`---@class [(exact)] <name>[: <parent>]`
`---@class [(exact)] <name>[: <parent>[, <parent>...]]`
</div>

**Examples**
Expand Down