kristiandupont / kanel

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

Incorrect import path if importsExtension is not defined #604

Closed litewarp closed 1 hour ago

litewarp commented 4 hours 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 4 hours ago

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

litewarp commented 2 hours ago

Awesome! Thanks!