From e91dad66dc3385b6f514460f2bf11f5424708ded Mon Sep 17 00:00:00 2001 From: igalklebanov Date: Sat, 2 Nov 2024 03:11:39 +0200 Subject: [PATCH] improve outdated error. --- outdated-typescript.d.ts | 47 ++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/outdated-typescript.d.ts b/outdated-typescript.d.ts index 1114df2ca..ec4b014a5 100644 --- a/outdated-typescript.d.ts +++ b/outdated-typescript.d.ts @@ -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