From 099c7e0dd8a1264e341041fa33f6ed6d15b0e3ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zo=C3=A9?= Date: Sat, 15 Jan 2022 16:59:27 +0100 Subject: [PATCH] feat(types): drop TypeScript < 4.1 (#13954) Co-authored-by: Rik Smale <13023439+WikiRik@users.noreply.github.com> --- .github/workflows/ci.yml | 2 +- docs/manual/other-topics/typescript.md | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c517a36015b5..75d39f137eb9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,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 steps: diff --git a/docs/manual/other-topics/typescript.md b/docs/manual/other-topics/typescript.md index 39b9c87a636c..684e9a48c286 100644 --- a/docs/manual/other-topics/typescript.md +++ b/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.