chore(deps): update @typescript/native-preview#1479
Merged
Timeless0911 merged 1 commit intomainfrom Feb 10, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the repo to use a newer @typescript/native-preview build and aligns the tsgo-related redirect integration fixtures/snapshots with the updated .d.ts emit shape.
Changes:
- Bump
@typescript/native-previewto7.0.0-dev.20260210.1(and updatepnpm-lock.yaml). - Update tsgo redirect integration snapshots to expect
type sources = typeof import(...)instead ofimport sources = require(...). - Update the tsgo redirect fixture source to use
typeof import(...)forsources.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| tests/integration/redirect/dtsTsgo.test.ts | Updates inline snapshots for .d.ts output produced by tsgo/native-preview. |
| tests/integration/redirect/dts-tsgo/src/index.ts | Adjusts fixture source to use typeof import() typing for sources. |
| packages/plugin-dts/package.json | Bumps @typescript/native-preview devDependency version. |
| pnpm-lock.yaml | Updates lockfile for the new native-preview version (and other resolved dependency changes). |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (1)
tests/integration/redirect/dts-tsgo/src/index.ts:12
sourcesis defined as a type alias, but it’s exported via a regular named export (export { sources, ... }). In this repo, type-only exports are typically made explicit (e.g.export type { ... }), which avoids issues with isolated-module transpilers and makes the API clearer. Consider exporting it as a type-only export (e.g.export { type sources, ... }orexport type { sources }) and adjusting the fixture expectations accordingly.
type sources = typeof import('@src/logger');
export {
sources,
type Baz as self,
logRequest,
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Update
@typescript/native-previewto7.0.0-dev.20260210.1and fix related integration tests to align with ts 6.0 defaults.Related Links
microsoft/TypeScript#63085
Checklist