Describe the bug
I'm trying to import Runtype objects from other files.
Field names are updated in our name formatter. Maybe we should consider adding a reference variable, so we don't have to fix this in our name formatter? 🤷♂️
re #53
To Reproduce
{
"kind": "record",
"fields": [
{
"name": "inv",
"type": { "kind": "named", "name": "MyRunTypes.Invoice" }
}
]
}
import * as MyRuntypes from "../my-runtypes";
export const ReferenceToInvoiceRt = rt.Record({
inv: myruntypes.InvoiceRt,
});
Describe the bug
I'm trying to import Runtype objects from other files.
Field names are updated in our name formatter. Maybe we should consider adding a reference variable, so we don't have to fix this in our name formatter? 🤷♂️
re #53
To Reproduce
{ "kind": "record", "fields": [ { "name": "inv", "type": { "kind": "named", "name": "MyRunTypes.Invoice" } } ] }