Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Missing shim for Null.t #636

Closed
sgrove opened this issue Aug 17, 2023 · 0 comments
Closed

Missing shim for Null.t #636

sgrove opened this issue Aug 17, 2023 · 0 comments

Comments

@sgrove
Copy link
Collaborator

sgrove commented Aug 17, 2023

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";
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant