Skip to content

Commit

Permalink
fix jsdoc @ type-utils.
Browse files Browse the repository at this point in the history
  • Loading branch information
igalklebanov committed Nov 17, 2024
1 parent 25b6715 commit 9ce8063
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/util/type-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ export type NarrowPartial<O, T> = DrainOuterGeneric<
* Example:
*
* ```ts
* const person = await db.selectFrom('person')
* import type { NotNull } from 'kysely'
*
* await db.selectFrom('person')
* .where('nullable_column', 'is not', null)
* .selectAll()
* .$narrowType<{ nullable_column: NotNull }>()
Expand All @@ -196,7 +198,7 @@ export type SqlBool = boolean | 0 | 1
* A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<T>>>>>>>>>>>>>>>>>>>>>>>>
* >
*
* type Error = Test<number> // Type instantiation is excessively deep and possibly infinite.ts (2589)
* // type Error = Test<number> // Type instantiation is excessively deep and possibly infinite.ts (2589)
* ```
*
* To fix this, we can use `DrainOuterGeneric`:
Expand Down

0 comments on commit 9ce8063

Please sign in to comment.