Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit61a33237e0

README.md

declaration (module)

A type's type.yaml, decoded and held: the one reader behind every question about a type as a whole — its files, whether it broadcasts its subassets, how its instances are pictured.

Exports

  • M.of(typeName) -> table? — the decoded declaration, or nil when no type answers to the name, it has no type.yaml, or the file does not decode (the last with a warning naming the type). Shared: read it, do not write to it.
  • M.forget() — drop every held declaration. The change dispatcher calls it for every write inside an .assetType folder and for every removed type.