Dataclasses

Noir.Libraries.Dataclasses: NoirLibrary

A library that allows you to create dataclasses, similar to Python.


Noir.Libraries.Dataclasses:New(name, fields)

Create a new dataclass.

Parameters

  • name: string

  • fields: table<integer, NoirDataclassField>

Returns

  • NoirDataclass


Noir.Libraries.Dataclasses:Field(name, type)

Returns a dataclass field to be used with Noir.Libraries.Dataclasses:New().

Parameters

  • name: string

  • type: NoirTypeCheckingType

Returns

  • NoirDataclassField

Last updated