Skip to content

refactor(types): migrate from tsd to tstyche#1

Closed
Puppo wants to merge 1 commit into
masterfrom
puppo/migrate-tsd-to-tstyche
Closed

refactor(types): migrate from tsd to tstyche#1
Puppo wants to merge 1 commit into
masterfrom
puppo/migrate-tsd-to-tstyche

Conversation

@Puppo

@Puppo Puppo commented May 14, 2026

Copy link
Copy Markdown
Owner

Summary

Migrate type testing from tsd to tstyche, following the same pattern adopted across the Fastify ecosystem.

Changes

  • Replace tsd with tstyche ^7.0.0 in devDependencies
  • Rename index.test-d.tsindex.tst.ts (tstyche auto-discovers *.tst.ts files)
  • Rewrite type assertions using tstyche's expect(...).type.* API:
    • expectType<T>(v)expect(v).type.toBe<T>()
    • expectAssignable<T>(v)expect(v).type.toBeAssignableTo<T>()
  • Delete tsconfig.json (existed only to point tsd at the test file)

References

- Replace tsd with tstyche ^7.0.0 in devDependencies
- Rename index.test-d.ts to index.tst.ts
- Rewrite type assertions using tstyche expect().type.* API
- Delete tsconfig.json (existed only for tsd file discovery)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Puppo Puppo closed this May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant