Skip to content

Add ExtractColumnType and DrainOuterGeneric type exports#1679

Merged
igalklebanov merged 7 commits intokysely-org:masterfrom
mifi:patch-1
Jan 17, 2026
Merged

Add ExtractColumnType and DrainOuterGeneric type exports#1679
igalklebanov merged 7 commits intokysely-org:masterfrom
mifi:patch-1

Conversation

@mifi
Copy link
Copy Markdown
Contributor

@mifi mifi commented Jan 14, 2026

Fixes error seen in #1115 (comment)

The inferred type of '...' cannot be named without a reference to 'node_modules/kysely/dist/esm/util/type-utils.js'. This is likely not portable. A type annotation is necessary.

(when using composite: true in typescript)

Fixes error seen in kysely-org#1115 (comment)

```
The inferred type of 'all' cannot be named without a reference to 'node_modules/kysely/dist/esm/util/type-utils.js'. This is likely not portable. A type annotation is necessary.
```

(when using `composite: true` in typescript)
@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 14, 2026

@mifi is attempting to deploy a commit to the Kysely Team Team on Vercel.

A member of the Team first needs to authorize it.

@igalklebanov
Copy link
Copy Markdown
Member

Hey 👋

Thanks! 🙏

Can you add an example in /test/composite-ts that would fail otherwise?

@igalklebanov igalklebanov added the typescript Related to Typescript label Jan 14, 2026
@mifi
Copy link
Copy Markdown
Contributor Author

mifi commented Jan 14, 2026

hi! thanks, i've added a file. i believe it will fail with such a simple case

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jan 14, 2026

commit: 400a3bf

Comment thread test/composite-ts/jsonObjectFrom.mts Outdated
Copy link
Copy Markdown
Member

@igalklebanov igalklebanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original example was good enough, just needed a .execute().

Detected that also DrainOuterGeneric needs to be exported.

🚀

@igalklebanov igalklebanov changed the title Add ExtractColumnType type export Add ExtractColumnType and DraonOuterGeneric type exports Jan 17, 2026
@igalklebanov igalklebanov changed the title Add ExtractColumnType and DraonOuterGeneric type exports Add ExtractColumnType and DrainOuterGeneric type exports Jan 17, 2026
@igalklebanov igalklebanov merged commit 6f016af into kysely-org:master Jan 17, 2026
30 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

typescript Related to Typescript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants