From 57dfce360e57683773c34da79041cdab1f4fa6b5 Mon Sep 17 00:00:00 2001 From: "Peter V." <98245483+p5quared@users.noreply.github.com> Date: Tue, 1 Oct 2024 14:16:58 -0700 Subject: [PATCH] chore: type of return value asserts against string Co-authored-by: Tim Schmelter --- .../src/utils/model-datasource-strategy-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/amplify-graphql-transformer-core/src/utils/model-datasource-strategy-utils.ts b/packages/amplify-graphql-transformer-core/src/utils/model-datasource-strategy-utils.ts index 5c39bbfb39..863877e78a 100644 --- a/packages/amplify-graphql-transformer-core/src/utils/model-datasource-strategy-utils.ts +++ b/packages/amplify-graphql-transformer-core/src/utils/model-datasource-strategy-utils.ts @@ -158,7 +158,7 @@ export const isPostgresModel = (ctx: DataSourceStrategiesProvider, typename: str /** * Type predicate that returns true if `dbType` is a PostgreSQL database type */ -export const isPostgresDbType = (dbType: ModelDataSourceStrategyDbType): dbType is ModelDataSourceStrategySqlDbType => { +export const isPostgresDbType = (dbType: ModelDataSourceStrategyDbType): dbType is 'POSTGRES' => { return dbType === POSTGRES_DB_TYPE; };