Skip to content

Commit

Permalink
improve outdated error.
Browse files Browse the repository at this point in the history
  • Loading branch information
igalklebanov committed Nov 2, 2024
1 parent f5e1683 commit e91dad6
Showing 1 changed file with 24 additions and 23 deletions.
47 changes: 24 additions & 23 deletions outdated-typescript.d.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
type ErrorMessage =
'Your TypeScript version is too old. Please upgrade to >= 4.6.'
export type Kysely = ErrorMessage
export type sql = ErrorMessage
export type expressionBuilder = ErrorMessage
export type Expression = ErrorMessage
export type ColumnType = ErrorMessage
export type Generated = ErrorMessage
export type GeneratedAlways = ErrorMessage
export type JSONColumnType = ErrorMessage
export type Selectable = ErrorMessage
export type Insertable = ErrorMessage
export type Updateable = ErrorMessage
export type MysqlDialect = ErrorMessage
export type PostgresDialect = ErrorMessage
export type SqliteDialect = ErrorMessage
export type MssqlDialect = ErrorMessage
export type InferResult = ErrorMessage
export type CompiledQuery = ErrorMessage
export type UpdateResult = ErrorMessage
export type InsertResult = ErrorMessage
export type DeleteResult = ErrorMessage
export type MergeResult = ErrorMessage
import { KyselyTypeError } from './src/util/type-error'
type OutdatedTSError =
KyselyTypeError<'The installed TypeScript version is outdated and cannot guarantee type-safety with Kysely. Please upgrade to version 4.6 or newer.'>
export type Kysely = OutdatedTSError
export type sql = OutdatedTSError
export type expressionBuilder = OutdatedTSError
export type Expression = OutdatedTSError
export type ColumnType = OutdatedTSError
export type Generated = OutdatedTSError
export type GeneratedAlways = OutdatedTSError
export type JSONColumnType = OutdatedTSError
export type Selectable = OutdatedTSError
export type Insertable = OutdatedTSError
export type Updateable = OutdatedTSError
export type MysqlDialect = OutdatedTSError
export type PostgresDialect = OutdatedTSError
export type SqliteDialect = OutdatedTSError
export type MssqlDialect = OutdatedTSError
export type InferResult = OutdatedTSError
export type CompiledQuery = OutdatedTSError
export type UpdateResult = OutdatedTSError
export type InsertResult = OutdatedTSError
export type DeleteResult = OutdatedTSError
export type MergeResult = OutdatedTSError

0 comments on commit e91dad6

Please sign in to comment.