Skip to content

Commit a3837b8

Browse files
committed
feat!: update minimum TypeScript version
To leverage new TypeScript features, we need to update the minimum TypeScript version to 4.1. Doing so allows us to take advantage of the various features across the stdlib code base: constructs like Record, Omit, or Partial, the keyof operator, type predicates, conditional types, and more. TypeScript versions older than 4.1 are not in widespread use, so this change should not affect most users, especially those who upgrade with each new TypeScript version. BREAKING CHANGE: update minimum TypeScript version to 4.1 To migrate, users should upgrade their TypeScript version to at least version 4.1. Private-ref: stdlib-js/todo#1713
1 parent 91d723b commit a3837b8

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* limitations under the License.
1717
*/
1818

19-
// TypeScript Version: 2.0
19+
// TypeScript Version: 4.1
2020

2121
/* tslint:disable:max-line-length */
2222
/* tslint:disable:max-file-line-count */

lib/node_modules/@stdlib/_tools/scaffold/math-iter-unary/data/docs/types/index__d__ts.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* limitations under the License.
1717
*/
1818

19-
// TypeScript Version: 2.0
19+
// TypeScript Version: 4.1
2020

2121
/// <reference types="@stdlib/types"/>
2222

lib/node_modules/@stdlib/_tools/scaffold/math-strided-real-typed-mskunary/data/docs/types/index__d__ts.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* limitations under the License.
1717
*/
1818

19-
// TypeScript Version: 2.0
19+
// TypeScript Version: 4.1
2020

2121
/**
2222
* Interface describing `{{ALIAS}}`.

lib/node_modules/@stdlib/_tools/scaffold/math-strided-real-typed-unary/data/docs/types/index__d__ts.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* limitations under the License.
1717
*/
1818

19-
// TypeScript Version: 2.0
19+
// TypeScript Version: 4.1
2020

2121
/**
2222
* Interface describing `{{ALIAS}}`.

lib/node_modules/@stdlib/_tools/scripts/create_namespace_types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function createDefinitionFile( ns, imports, properties, description ) {
119119
'* limitations under the License.',
120120
'*/',
121121
'',
122-
'// TypeScript Version: 2.0',
122+
'// TypeScript Version: 4.1',
123123
'',
124124
'/* tslint:disable:max-line-length */',
125125
'/* tslint:disable:max-file-line-count */',

0 commit comments

Comments
 (0)