I’m using gentype. This is typical output and errors are produced for EVERY .gen.tsx
file. To suppress the error, there should be a // @ts-ignore
before the import statement. Or maybe my typescript configuration is wrong? How do you make these typescript errors go away? If I exclude .gen.tsx
files from type checking, then I think I lose the errors if my gentype bindings to typescript functions are not correct.
/* TypeScript file generated from Array1.resi by genType. */
/* eslint-disable */
/* tslint:disable */
import * as Array1JS from './Array1.res.js';
export type t<a> = { TAG: "Array1"; _0: a[] };
export const makeOrThrow: <a>(_1:a[]) => t<a> = Array1JS.makeOrThrow as any;
This is the typescript error…
src/Array1.gen.tsx:6:27 - error TS7016: Could not find a declaration file for module './Array1.res.js'. '/Users/Justin/Source/hot/src/Array1.res.js' implicitly has an 'any' type.
6 import * as Array1JS from './Array1.res.js';