Skip to content

v0.2.0

Compare
Choose a tag to compare
@koistya koistya released this 19 Apr 12:33
· 16 commits to main since this release

Allow to add a custom prefix; improve the supported type coverage.

updateTypes({
  output: `./types.ts`,
  // Inject a custom import at the top of the generated file
  prefix: `import { PostgresInterval } from "postgres-interval";`
});

Drop generation of EntityRecord types, use Knex.DbRecord<Entity> instead.