refactor(types): migrate from tsd to tstyche - #137
Open
Puppo wants to merge 4 commits into
Open
Conversation
- Replace tsd with tstyche in devDependencies
- Update test:types script to use tstyche
- Remove tsd config block from package.json
- Rename test/types/index.ts to test/types/index.tst.ts
- Convert expectAssignable<T>(x) to expect(x).type.toBeAssignableTo<T>()
- Convert expectError(() => {...}) to expect(() => {...}).type.toRaiseError()
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The types declaration file was moved from index.d.ts to types/index.d.ts but the files array in package.json was not updated, which would cause the published npm package to ship without type declarations. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Puppo
marked this pull request as ready for review
May 18, 2026 20:20
mrazauskas
reviewed
May 19, 2026
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.
Description
Migrates type tests from
tsdtotstyche.Changes
tsddependency withtstyche ^3.3.0test:typesscript to usetstychetsdconfig block frompackage.jsonindex.d.ts→types/index.d.tsand updatetypes/filesfields accordinglytest/types/index.ts→types/index.tst.ts(tstyche convention)lint:typescriptscripts to point attypes/*.tst.tsexpectAssignable<T>(x)→expect(x).type.toBeAssignableTo<T>()expectError(() => {...})→expect(() => {...}).type.not.toBeCallableWith()Checklist
npm run test && npm run benchmark --if-present