zapatos icon indicating copy to clipboard operation
zapatos copied to clipboard

table named "import" breaks generated types

Open scottbessler opened this issue 2 years ago • 2 comments

I have a table named "import" that ends up generating the following invalid .d.ts:

    export namespace import {
         ....
    }

scottbessler avatar Feb 13 '23 02:02 scottbessler

Hmm. I can see that this would happen. Unfortunately, I'm not sure there's any straightforward way to fix it.

jawj avatar Feb 15 '23 14:02 jawj

hmm i think i'd either prefix/suffix to make it not a reserved word or add a config that allows you to provide an alternative name for a table

scottbessler avatar Feb 22 '23 17:02 scottbessler