Skip to content

Commit 84257f4

Browse files
Document multiple inheritance in @class (#41)
1 parent c884480 commit 84257f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/wiki/annotations.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -390,12 +390,12 @@ print(x) --> x:string?
390390

391391
### @class
392392

393-
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.
393+
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.
394394

395395
**Syntax**
396396

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

401401
**Examples**

0 commit comments

Comments
 (0)