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: TypeScript 4.6 #4615

Merged
merged 5 commits into from Mar 4, 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 README.md
Expand Up @@ -51,7 +51,7 @@ The latest version under the `canary` tag **(latest commit to `main`)** is:

### Supported TypeScript Version

**The version range of TypeScript currently supported by this parser is `>=3.3.1 <4.6.0`.**
**The version range of TypeScript currently supported by this parser is `>=3.3.1 <4.7.0`.**

These versions are what we test against.

Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -105,10 +105,10 @@
"tmp": "^0.2.1",
"ts-node": "^10.4.0",
"tslint": "^6.1.3",
"typescript": ">=3.3.1 <4.6.0"
"typescript": ">=3.3.1 <4.7.0"
},
"resolutions": {
"@types/node": "^16.11.4",
"typescript": "4.5.2"
"typescript": "4.6.2"
}
}
2 changes: 2 additions & 0 deletions packages/scope-manager/src/lib/dom.iterable.ts
Expand Up @@ -38,6 +38,7 @@ export const dom_iterable = {
NodeListOf: TYPE,
Plugin: TYPE,
PluginArray: TYPE,
RTCRtpTransceiver: TYPE,
RTCStatsReport: TYPE,
SVGLengthList: TYPE,
SVGNumberList: TYPE,
Expand All @@ -54,6 +55,7 @@ export const dom_iterable = {
TouchList: TYPE,
URLSearchParams: TYPE,
WEBGL_draw_buffers: TYPE,
WEBGL_multi_draw: TYPE,
WebGL2RenderingContextBase: TYPE,
WebGL2RenderingContextOverloads: TYPE,
WebGLRenderingContextBase: TYPE,
Expand Down
25 changes: 22 additions & 3 deletions packages/scope-manager/src/lib/dom.ts
Expand Up @@ -85,6 +85,9 @@ export const dom = {
EventSourceInit: TYPE,
FilePropertyBag: TYPE,
FileSystemFlags: TYPE,
FileSystemGetDirectoryOptions: TYPE,
FileSystemGetFileOptions: TYPE,
FileSystemRemoveOptions: TYPE,
FocusEventInit: TYPE,
FocusOptions: TYPE,
FontFaceDescriptors: TYPE,
Expand Down Expand Up @@ -120,6 +123,9 @@ export const dom = {
Keyframe: TYPE,
KeyframeAnimationOptions: TYPE,
KeyframeEffectOptions: TYPE,
LockInfo: TYPE,
LockManagerSnapshot: TYPE,
LockOptions: TYPE,
MediaCapabilitiesDecodingInfo: TYPE,
MediaCapabilitiesEncodingInfo: TYPE,
MediaCapabilitiesInfo: TYPE,
Expand Down Expand Up @@ -350,6 +356,7 @@ export const dom = {
CSSTransition: TYPE_VALUE,
Cache: TYPE_VALUE,
CacheStorage: TYPE_VALUE,
CanvasCaptureMediaStreamTrack: TYPE_VALUE,
CanvasCompositing: TYPE,
CanvasDrawImage: TYPE,
CanvasDrawPath: TYPE,
Expand Down Expand Up @@ -453,9 +460,12 @@ export const dom = {
FileReader: TYPE_VALUE,
FileSystem: TYPE_VALUE,
FileSystemDirectoryEntry: TYPE_VALUE,
FileSystemDirectoryHandle: TYPE_VALUE,
FileSystemDirectoryReader: TYPE_VALUE,
FileSystemEntry: TYPE_VALUE,
FileSystemFileEntry: TYPE_VALUE,
FileSystemFileHandle: TYPE_VALUE,
FileSystemHandle: TYPE_VALUE,
FocusEvent: TYPE_VALUE,
FontFace: TYPE_VALUE,
FontFaceSetEventMap: TYPE,
Expand Down Expand Up @@ -587,6 +597,7 @@ export const dom = {
ImageBitmapRenderingContext: TYPE_VALUE,
ImageData: TYPE_VALUE,
InnerHTML: TYPE,
InputDeviceInfo: TYPE_VALUE,
InputEvent: TYPE_VALUE,
IntersectionObserver: TYPE_VALUE,
IntersectionObserverEntry: TYPE_VALUE,
Expand All @@ -595,6 +606,8 @@ export const dom = {
KeyframeEffect: TYPE_VALUE,
LinkStyle: TYPE,
Location: TYPE_VALUE,
Lock: TYPE_VALUE,
LockManager: TYPE_VALUE,
MathMLElementEventMap: TYPE,
MathMLElement: TYPE_VALUE,
MediaCapabilities: TYPE_VALUE,
Expand Down Expand Up @@ -861,6 +874,7 @@ export const dom = {
ServiceWorkerContainer: TYPE_VALUE,
ServiceWorkerRegistrationEventMap: TYPE,
ServiceWorkerRegistration: TYPE_VALUE,
ShadowRootEventMap: TYPE,
ShadowRoot: TYPE_VALUE,
SharedWorker: TYPE_VALUE,
Slottable: TYPE,
Expand Down Expand Up @@ -934,6 +948,7 @@ export const dom = {
WEBGL_depth_texture: TYPE,
WEBGL_draw_buffers: TYPE,
WEBGL_lose_context: TYPE,
WEBGL_multi_draw: TYPE,
WaveShaperNode: TYPE_VALUE,
WebGL2RenderingContext: TYPE_VALUE,
WebGL2RenderingContextBase: TYPE,
Expand Down Expand Up @@ -1000,6 +1015,7 @@ export const dom = {
FunctionStringCallback: TYPE,
IdleRequestCallback: TYPE,
IntersectionObserverCallback: TYPE,
LockGrantedCallback: TYPE,
MediaSessionActionHandler: TYPE,
MutationCallback: TYPE,
NotificationPermissionCallback: TYPE,
Expand Down Expand Up @@ -1045,7 +1061,7 @@ export const dom = {
ConstrainDouble: TYPE,
ConstrainULong: TYPE,
DOMHighResTimeStamp: TYPE,
DOMTimeStamp: TYPE,
EpochTimeStamp: TYPE,
EventListenerOrEventListenerObject: TYPE,
Float32List: TYPE,
FormDataEntryValue: TYPE,
Expand Down Expand Up @@ -1129,17 +1145,21 @@ export const dom = {
DisplayCaptureSurfaceType: TYPE,
DistanceModelType: TYPE,
DocumentReadyState: TYPE,
DocumentVisibilityState: TYPE,
EndOfStreamError: TYPE,
EndingType: TYPE,
FileSystemHandleKind: TYPE,
FillMode: TYPE,
FontFaceLoadStatus: TYPE,
FontFaceSetLoadStatus: TYPE,
FullscreenNavigationUI: TYPE,
GamepadHapticActuatorType: TYPE,
GamepadMappingType: TYPE,
GlobalCompositeOperation: TYPE,
HdrMetadataType: TYPE,
IDBCursorDirection: TYPE,
IDBRequestReadyState: TYPE,
IDBTransactionDurability: TYPE,
IDBTransactionMode: TYPE,
ImageOrientation: TYPE,
ImageSmoothingQuality: TYPE,
Expand All @@ -1148,6 +1168,7 @@ export const dom = {
KeyType: TYPE,
KeyUsage: TYPE,
LineAlignSetting: TYPE,
LockMode: TYPE,
MediaDecodingType: TYPE,
MediaDeviceKind: TYPE,
MediaEncodingType: TYPE,
Expand Down Expand Up @@ -1177,7 +1198,6 @@ export const dom = {
PresentationStyle: TYPE,
PublicKeyCredentialType: TYPE,
PushEncryptionKeyName: TYPE,
PushPermissionState: TYPE,
RTCBundlePolicy: TYPE,
RTCDataChannelState: TYPE,
RTCDegradationPreference: TYPE,
Expand Down Expand Up @@ -1230,7 +1250,6 @@ export const dom = {
TransferFunction: TYPE,
UserVerificationRequirement: TYPE,
VideoFacingModeEnum: TYPE,
VisibilityState: TYPE,
WebGLPowerPreference: TYPE,
WorkerType: TYPE,
XMLHttpRequestResponseType: TYPE,
Expand Down
22 changes: 22 additions & 0 deletions packages/scope-manager/src/lib/es2022.array.ts
@@ -0,0 +1,22 @@
// THIS CODE WAS AUTOMATICALLY GENERATED
// DO NOT EDIT THIS CODE BY HAND
// YOU CAN REGENERATE IT USING yarn generate:lib

import { ImplicitLibVariableOptions } from '../variable';
import { TYPE } from './base-config';

export const es2022_array = {
Array: TYPE,
ReadonlyArray: TYPE,
Int8Array: TYPE,
Uint8Array: TYPE,
Uint8ClampedArray: TYPE,
Int16Array: TYPE,
Uint16Array: TYPE,
Int32Array: TYPE,
Uint32Array: TYPE,
Float32Array: TYPE,
Float64Array: TYPE,
BigInt64Array: TYPE,
BigUint64Array: TYPE,
} as Record<string, ImplicitLibVariableOptions>;
19 changes: 19 additions & 0 deletions packages/scope-manager/src/lib/es2022.error.ts
@@ -0,0 +1,19 @@
// THIS CODE WAS AUTOMATICALLY GENERATED
// DO NOT EDIT THIS CODE BY HAND
// YOU CAN REGENERATE IT USING yarn generate:lib

import { ImplicitLibVariableOptions } from '../variable';
import { TYPE } from './base-config';

export const es2022_error = {
ErrorOptions: TYPE,
Error: TYPE,
ErrorConstructor: TYPE,
EvalErrorConstructor: TYPE,
RangeErrorConstructor: TYPE,
ReferenceErrorConstructor: TYPE,
SyntaxErrorConstructor: TYPE,
TypeErrorConstructor: TYPE,
URIErrorConstructor: TYPE,
AggregateErrorConstructor: TYPE,
} as Record<string, ImplicitLibVariableOptions>;
18 changes: 18 additions & 0 deletions packages/scope-manager/src/lib/es2022.full.ts
@@ -0,0 +1,18 @@
// THIS CODE WAS AUTOMATICALLY GENERATED
// DO NOT EDIT THIS CODE BY HAND
// YOU CAN REGENERATE IT USING yarn generate:lib

import { ImplicitLibVariableOptions } from '../variable';
import { es2022 } from './es2022';
import { dom } from './dom';
import { webworker_importscripts } from './webworker.importscripts';
import { scripthost } from './scripthost';
import { dom_iterable } from './dom.iterable';

export const es2022_full = {
...es2022,
...dom,
...webworker_importscripts,
...scripthost,
...dom_iterable,
} as Record<string, ImplicitLibVariableOptions>;
10 changes: 10 additions & 0 deletions packages/scope-manager/src/lib/es2022.object.ts
@@ -0,0 +1,10 @@
// THIS CODE WAS AUTOMATICALLY GENERATED
// DO NOT EDIT THIS CODE BY HAND
// YOU CAN REGENERATE IT USING yarn generate:lib

import { ImplicitLibVariableOptions } from '../variable';
import { TYPE } from './base-config';

export const es2022_object = {
Object: TYPE,
} as Record<string, ImplicitLibVariableOptions>;
10 changes: 10 additions & 0 deletions packages/scope-manager/src/lib/es2022.string.ts
@@ -0,0 +1,10 @@
// THIS CODE WAS AUTOMATICALLY GENERATED
// DO NOT EDIT THIS CODE BY HAND
// YOU CAN REGENERATE IT USING yarn generate:lib

import { ImplicitLibVariableOptions } from '../variable';
import { TYPE } from './base-config';

export const es2022_string = {
String: TYPE,
} as Record<string, ImplicitLibVariableOptions>;
18 changes: 18 additions & 0 deletions packages/scope-manager/src/lib/es2022.ts
@@ -0,0 +1,18 @@
// THIS CODE WAS AUTOMATICALLY GENERATED
// DO NOT EDIT THIS CODE BY HAND
// YOU CAN REGENERATE IT USING yarn generate:lib

import { ImplicitLibVariableOptions } from '../variable';
import { es2021 } from './es2021';
import { es2022_array } from './es2022.array';
import { es2022_error } from './es2022.error';
import { es2022_object } from './es2022.object';
import { es2022_string } from './es2022.string';

export const es2022 = {
...es2021,
...es2022_array,
...es2022_error,
...es2022_object,
...es2022_string,
} as Record<string, ImplicitLibVariableOptions>;
14 changes: 12 additions & 2 deletions packages/scope-manager/src/lib/esnext.array.ts
Expand Up @@ -6,7 +6,17 @@ import { ImplicitLibVariableOptions } from '../variable';
import { TYPE } from './base-config';

export const esnext_array = {
FlatArray: TYPE,
ReadonlyArray: TYPE,
Array: TYPE,
ReadonlyArray: TYPE,
Int8Array: TYPE,
Uint8Array: TYPE,
Uint8ClampedArray: TYPE,
Int16Array: TYPE,
Uint16Array: TYPE,
Int32Array: TYPE,
Uint32Array: TYPE,
Float32Array: TYPE,
Float64Array: TYPE,
BigInt64Array: TYPE,
BigUint64Array: TYPE,
} as Record<string, ImplicitLibVariableOptions>;
4 changes: 2 additions & 2 deletions packages/scope-manager/src/lib/esnext.ts
Expand Up @@ -3,10 +3,10 @@
// YOU CAN REGENERATE IT USING yarn generate:lib

import { ImplicitLibVariableOptions } from '../variable';
import { es2021 } from './es2021';
import { es2022 } from './es2022';
import { esnext_intl } from './esnext.intl';

export const esnext = {
...es2021,
...es2022,
...esnext_intl,
} as Record<string, ImplicitLibVariableOptions>;
12 changes: 12 additions & 0 deletions packages/scope-manager/src/lib/index.ts
Expand Up @@ -12,6 +12,7 @@ import { es2018 } from './es2018';
import { es2019 } from './es2019';
import { es2020 } from './es2020';
import { es2021 } from './es2021';
import { es2022 } from './es2022';
import { esnext } from './esnext';
import { dom } from './dom';
import { dom_iterable } from './dom.iterable';
Expand Down Expand Up @@ -53,6 +54,10 @@ import { es2021_promise } from './es2021.promise';
import { es2021_string } from './es2021.string';
import { es2021_weakref } from './es2021.weakref';
import { es2021_intl } from './es2021.intl';
import { es2022_array } from './es2022.array';
import { es2022_error } from './es2022.error';
import { es2022_object } from './es2022.object';
import { es2022_string } from './es2022.string';
import { esnext_array } from './esnext.array';
import { esnext_symbol } from './esnext.symbol';
import { esnext_asynciterable } from './esnext.asynciterable';
Expand All @@ -67,6 +72,7 @@ import { es2018_full } from './es2018.full';
import { es2019_full } from './es2019.full';
import { es2020_full } from './es2020.full';
import { es2021_full } from './es2021.full';
import { es2022_full } from './es2022.full';
import { esnext_full } from './esnext.full';
import { lib as libBase } from './lib';

Expand All @@ -81,6 +87,7 @@ const lib = {
es2019,
es2020,
es2021,
es2022,
esnext,
dom,
'dom.iterable': dom_iterable,
Expand Down Expand Up @@ -122,6 +129,10 @@ const lib = {
'es2021.string': es2021_string,
'es2021.weakref': es2021_weakref,
'es2021.intl': es2021_intl,
'es2022.array': es2022_array,
'es2022.error': es2022_error,
'es2022.object': es2022_object,
'es2022.string': es2022_string,
'esnext.array': esnext_array,
'esnext.symbol': esnext_symbol,
'esnext.asynciterable': esnext_asynciterable,
Expand All @@ -136,6 +147,7 @@ const lib = {
'es2019.full': es2019_full,
'es2020.full': es2020_full,
'es2021.full': es2021_full,
'es2022.full': es2022_full,
'esnext.full': esnext_full,
lib: libBase,
} as const;
Expand Down
1 change: 1 addition & 0 deletions packages/scope-manager/src/lib/webworker.iterable.ts
Expand Up @@ -18,6 +18,7 @@ export const webworker_iterable = {
SubtleCrypto: TYPE,
URLSearchParams: TYPE,
WEBGL_draw_buffers: TYPE,
WEBGL_multi_draw: TYPE,
WebGL2RenderingContextBase: TYPE,
WebGL2RenderingContextOverloads: TYPE,
WebGLRenderingContextBase: TYPE,
Expand Down