Skip to content

Commit

Permalink
chore: type of return value asserts against string
Browse files Browse the repository at this point in the history
Co-authored-by: Tim Schmelter <[email protected]>
  • Loading branch information
p5quared and palpatim authored Oct 1, 2024
1 parent b645a6b commit 57dfce3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit 57dfce3

Please sign in to comment.