Skip to content

4. What TypeScript checks that YAML does not

Not a guarantee about behaviour — a guarantee about when you find out:

  • a parent or carried label that does not exist is a compile error, not a load-time warning;
  • an edge whose target type does not exist is a compile error;
  • a renamed property breaks every declaration that reads it;
  • a method’s declared return type names a real type.

A realm authored in TypeScript and validated before install cannot be installed with these mistakes in it. A realm authored in YAML can, and reports them as loading problems.