Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(types): drop TypeScript < 4.1 #13954

Merged
merged 2 commits into from Jan 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -39,7 +39,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ts-version: ["3.9", "4.0", "4.1", "4.2", "4.3", "4.4", "4.5"]
ts-version: ["4.1", "4.2", "4.3", "4.4", "4.5"]
name: TS Typings (${{ matrix.ts-version }})
runs-on: ubuntu-latest
needs: lint
Expand Down
5 changes: 4 additions & 1 deletion docs/manual/other-topics/typescript.md
@@ -1,6 +1,9 @@
# TypeScript

Since v5, Sequelize provides its own TypeScript definitions. Please note that only TS >= 3.1 is supported.
Sequelize provides its own TypeScript definitions.

Please note that only **TypeScript >= 4.1** is supported.
Our TypeScript support does not follow SemVer. We will support TypeScript releases for at least one year, after which they may be dropped in a SemVer MINOR release.

As Sequelize heavily relies on runtime property assignments, TypeScript won't be very useful out of the box. A decent amount of manual type declarations are needed to make models workable.

Expand Down