I’m on alpha.11 and it doesn’t seem to be fixed. It just generates:
import type {JSON_t as Stdlib_JSON_t} from './Stdlib.gen.ts';
Which I handle by just putting a manual Stdlib.gen.ts file in the same dir. Ugly af, but works:
// Remove this file once genType patch is merged
// https://github.com/rescript-lang/rescript/pull/7378
export type JSON_t = unknown
alpha.11 is older so maybe alpha.12 will handle it properly?
Anyway, re. shims:
Shims don’t work for JSON.t. For shims to work, you have to use shims “Js” and use Js.Json.t instead. Any shims for “JSON” (or any ridiculous combination with Stdlib_ Core_ or double underscores etc) are just ignored in v11.