Skip to content

Commit

Permalink
fix: rename types.d.ts to types.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanvanherwijnen committed Nov 2, 2024
1 parent a141c3e commit 99f46e1
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/api/src/kysely/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { Pool } = pg
import { Kysely, PostgresDialect, CamelCasePlugin } from 'kysely'
import env from '@vitrify/tools/env'
// import type { Database as OidcDatabase } from '@modular-api/fastify-oidc'
import type { DB } from './types.d.ts'
import type { DB } from './types.js'
// export interface Database extends DB {}
export type Database = DB
Object.defineProperty(BigInt.prototype, 'toJSON', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import type {
RawInvoiceDiscount,
RawInvoiceSurcharge
} from '@modular-api/fastify-checkout'
import type { Generated, JSONColumnType } from 'kysely'

export interface Clients {
address: string
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/repositories/client.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { db } from '../kysely/index.js'
import type { Clients } from '../kysely/types.d.ts'
import type { Clients } from '../kysely/types.js'

import { sql, type Insertable, type Selectable, type Updateable } from 'kysely'
type Client = Selectable<Clients>
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/repositories/company.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { db } from '../kysely/index.js'
import type { Companies } from '../kysely/types.d.ts'
import type { Companies } from '../kysely/types.js'

import type { Insertable, Selectable, Updateable } from 'kysely'
type Company = Selectable<Companies>
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/repositories/initialNumberForPrefix.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ExpressionBuilder } from 'kysely'
import { db, type Database } from '../kysely/index.js'
import type { InitialNumberForPrefixes } from '../kysely/types.d.ts'
import type { InitialNumberForPrefixes } from '../kysely/types.js'

import type { Insertable, Selectable, Updateable } from 'kysely'
import { jsonObjectFrom } from 'kysely/helpers/postgres'
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/repositories/numberPrefix.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { db } from '../kysely/index.js'
import type { NumberPrefixes } from '../kysely/types.d.ts'
import type { NumberPrefixes } from '../kysely/types.js'

import type { Insertable, Selectable, Updateable } from 'kysely'
type NumberPrefix = Selectable<NumberPrefixes>
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/repositories/subscription.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ExpressionBuilder } from 'kysely'
import { db, type Database } from '../kysely/index.js'
import type { Subscriptions } from '../kysely/types.d.ts'
import type { Subscriptions } from '../kysely/types.js'

import type { Insertable, Selectable, Updateable } from 'kysely'
import { jsonObjectFrom } from 'kysely/helpers/postgres'
Expand Down

0 comments on commit 99f46e1

Please sign in to comment.