···11+import "@tylex/emitter";
22+33+namespace com.example.nullType {
44+ @doc("Demonstrates the null primitive type")
55+ model Main {
66+ @doc("Field with explicit null type - always null")
77+ @required
88+ alwaysNull: null;
99+1010+ @doc("Optional field that can be string or omitted, but not null")
1111+ optionalString?: string;
1212+1313+ @doc("Nullable string - can be omitted, string, or null")
1414+ nullableString?: string | null;
1515+ }
1616+}
···11+import "@tylex/emitter";
22+33+namespace com.example.recordWithNsidKey {
44+ @rec("nsid")
55+ @doc("Record with NSID as the record key")
66+ model Main {
77+ @doc("The NSID of the associated lexicon")
88+ @required
99+ nsid: nsid;
1010+1111+ @doc("Optional metadata")
1212+ metadata?: string;
1313+ }
1414+}