kristiandupont / kanel

Generate Typescript types from Postgres
https://kristiandupont.github.io/kanel/
MIT License
881 stars 62 forks source link

Incorrect import path if importsExtension is not defined #604

Closed litewarp closed 1 month ago

litewarp commented 1 month ago

If you leave importsExtension undefined, you get import paths like:

import type { UsersUserId } from './Usersundefined';

image

But if you add the importsExtension options, e.g., importsExtension: ".js" , everything is good.

image

kristiandupont commented 1 month ago

My apologies! I've published a new version that should fix this.

litewarp commented 1 month ago

Awesome! Thanks!