Missing shim for `Null.t`
I suspect this is likely to show up quite a bit (and maybe there's a way to shim it in user land?), so just bringing it up.
While using pgtyped-rescript, I was experimenting with getting all the way into my typescript code from Rescript-generated code, but this is currently one of the show-stoppers:
(generated) block__sql.res:
/** 'InsertBlock' parameters type */
type insertBlockParams = {
camel_case_name?: Null.t<string>,
chain_id?: Null.t<string>,
description?: Null.t<string>,
id?: Null.t<string>,
kind?: Null.t<string>,
local_schema?: Null.t<string>,
source_code?: Null.t<string>,
title?: Null.t<string>,
}
block__sql.gen.tsx
src/sql/block__sql.gen.tsx:10:34 - error TS2307: Cannot find module './Null.gen.js' or its corresponding type declarations.
10 import type { t as Null_t } from "./Null.gen.js";
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
For now, you'll have to define your own shims. But these things are all going into the compiler in v12 as Core is integrated, so we're going to make sure all of these things just work OOTB with no hassle for v12. Just bear with us.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Not today, bot!
This is a good reminder that we should do a round of testing with gentype and see what the current state for v12 is.