Skip to content

Commit

Permalink
Document multiple inheritance in @class (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
steveRoll-git authored Sep 6, 2024
1 parent c884480 commit 84257f4
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 84257f4

Please sign in to comment.