Skip to content

Commit 258116b

Browse files
authored
feat(scope-manager): reduce generated lib file size (#3468)
1 parent d4f0774 commit 258116b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+2237
-12572
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// THIS CODE WAS AUTOMATICALLY GENERATED
2+
// DO NOT EDIT THIS CODE BY HAND
3+
// YOU CAN REGENERATE IT USING yarn generate:lib
4+
5+
export const TYPE = Object.freeze({
6+
eslintImplicitGlobalSetting: 'readonly',
7+
isTypeVariable: true,
8+
isValueVariable: false,
9+
});
10+
export const VALUE = Object.freeze({
11+
eslintImplicitGlobalSetting: 'readonly',
12+
isTypeVariable: false,
13+
isValueVariable: true,
14+
});
15+
export const TYPE_VALUE = Object.freeze({
16+
eslintImplicitGlobalSetting: 'readonly',
17+
isTypeVariable: true,
18+
isValueVariable: true,
19+
});

packages/scope-manager/src/lib/dom.iterable.ts

+53-312
Original file line numberDiff line numberDiff line change
@@ -3,318 +3,59 @@
33
// YOU CAN REGENERATE IT USING yarn generate:lib
44

55
import { ImplicitLibVariableOptions } from '../variable';
6+
import { TYPE } from './base-config';
67

78
export const dom_iterable = {
8-
AudioParam: {
9-
eslintImplicitGlobalSetting: 'readonly',
10-
isTypeVariable: true,
11-
isValueVariable: false,
12-
name: 'AudioParam',
13-
},
14-
AudioParamMap: {
15-
eslintImplicitGlobalSetting: 'readonly',
16-
isTypeVariable: true,
17-
isValueVariable: false,
18-
name: 'AudioParamMap',
19-
},
20-
BaseAudioContext: {
21-
eslintImplicitGlobalSetting: 'readonly',
22-
isTypeVariable: true,
23-
isValueVariable: false,
24-
name: 'BaseAudioContext',
25-
},
26-
CSSRuleList: {
27-
eslintImplicitGlobalSetting: 'readonly',
28-
isTypeVariable: true,
29-
isValueVariable: false,
30-
name: 'CSSRuleList',
31-
},
32-
CSSStyleDeclaration: {
33-
eslintImplicitGlobalSetting: 'readonly',
34-
isTypeVariable: true,
35-
isValueVariable: false,
36-
name: 'CSSStyleDeclaration',
37-
},
38-
Cache: {
39-
eslintImplicitGlobalSetting: 'readonly',
40-
isTypeVariable: true,
41-
isValueVariable: false,
42-
name: 'Cache',
43-
},
44-
CanvasPathDrawingStyles: {
45-
eslintImplicitGlobalSetting: 'readonly',
46-
isTypeVariable: true,
47-
isValueVariable: false,
48-
name: 'CanvasPathDrawingStyles',
49-
},
50-
ClientRectList: {
51-
eslintImplicitGlobalSetting: 'readonly',
52-
isTypeVariable: true,
53-
isValueVariable: false,
54-
name: 'ClientRectList',
55-
},
56-
DOMRectList: {
57-
eslintImplicitGlobalSetting: 'readonly',
58-
isTypeVariable: true,
59-
isValueVariable: false,
60-
name: 'DOMRectList',
61-
},
62-
DOMStringList: {
63-
eslintImplicitGlobalSetting: 'readonly',
64-
isTypeVariable: true,
65-
isValueVariable: false,
66-
name: 'DOMStringList',
67-
},
68-
DOMTokenList: {
69-
eslintImplicitGlobalSetting: 'readonly',
70-
isTypeVariable: true,
71-
isValueVariable: false,
72-
name: 'DOMTokenList',
73-
},
74-
DataTransferItemList: {
75-
eslintImplicitGlobalSetting: 'readonly',
76-
isTypeVariable: true,
77-
isValueVariable: false,
78-
name: 'DataTransferItemList',
79-
},
80-
FileList: {
81-
eslintImplicitGlobalSetting: 'readonly',
82-
isTypeVariable: true,
83-
isValueVariable: false,
84-
name: 'FileList',
85-
},
86-
FormData: {
87-
eslintImplicitGlobalSetting: 'readonly',
88-
isTypeVariable: true,
89-
isValueVariable: false,
90-
name: 'FormData',
91-
},
92-
HTMLAllCollection: {
93-
eslintImplicitGlobalSetting: 'readonly',
94-
isTypeVariable: true,
95-
isValueVariable: false,
96-
name: 'HTMLAllCollection',
97-
},
98-
HTMLCollectionBase: {
99-
eslintImplicitGlobalSetting: 'readonly',
100-
isTypeVariable: true,
101-
isValueVariable: false,
102-
name: 'HTMLCollectionBase',
103-
},
104-
HTMLCollectionOf: {
105-
eslintImplicitGlobalSetting: 'readonly',
106-
isTypeVariable: true,
107-
isValueVariable: false,
108-
name: 'HTMLCollectionOf',
109-
},
110-
HTMLFormElement: {
111-
eslintImplicitGlobalSetting: 'readonly',
112-
isTypeVariable: true,
113-
isValueVariable: false,
114-
name: 'HTMLFormElement',
115-
},
116-
HTMLSelectElement: {
117-
eslintImplicitGlobalSetting: 'readonly',
118-
isTypeVariable: true,
119-
isValueVariable: false,
120-
name: 'HTMLSelectElement',
121-
},
122-
Headers: {
123-
eslintImplicitGlobalSetting: 'readonly',
124-
isTypeVariable: true,
125-
isValueVariable: false,
126-
name: 'Headers',
127-
},
128-
IDBDatabase: {
129-
eslintImplicitGlobalSetting: 'readonly',
130-
isTypeVariable: true,
131-
isValueVariable: false,
132-
name: 'IDBDatabase',
133-
},
134-
IDBObjectStore: {
135-
eslintImplicitGlobalSetting: 'readonly',
136-
isTypeVariable: true,
137-
isValueVariable: false,
138-
name: 'IDBObjectStore',
139-
},
140-
MediaKeyStatusMap: {
141-
eslintImplicitGlobalSetting: 'readonly',
142-
isTypeVariable: true,
143-
isValueVariable: false,
144-
name: 'MediaKeyStatusMap',
145-
},
146-
MediaList: {
147-
eslintImplicitGlobalSetting: 'readonly',
148-
isTypeVariable: true,
149-
isValueVariable: false,
150-
name: 'MediaList',
151-
},
152-
MimeTypeArray: {
153-
eslintImplicitGlobalSetting: 'readonly',
154-
isTypeVariable: true,
155-
isValueVariable: false,
156-
name: 'MimeTypeArray',
157-
},
158-
NamedNodeMap: {
159-
eslintImplicitGlobalSetting: 'readonly',
160-
isTypeVariable: true,
161-
isValueVariable: false,
162-
name: 'NamedNodeMap',
163-
},
164-
Navigator: {
165-
eslintImplicitGlobalSetting: 'readonly',
166-
isTypeVariable: true,
167-
isValueVariable: false,
168-
name: 'Navigator',
169-
},
170-
NodeList: {
171-
eslintImplicitGlobalSetting: 'readonly',
172-
isTypeVariable: true,
173-
isValueVariable: false,
174-
name: 'NodeList',
175-
},
176-
NodeListOf: {
177-
eslintImplicitGlobalSetting: 'readonly',
178-
isTypeVariable: true,
179-
isValueVariable: false,
180-
name: 'NodeListOf',
181-
},
182-
Plugin: {
183-
eslintImplicitGlobalSetting: 'readonly',
184-
isTypeVariable: true,
185-
isValueVariable: false,
186-
name: 'Plugin',
187-
},
188-
PluginArray: {
189-
eslintImplicitGlobalSetting: 'readonly',
190-
isTypeVariable: true,
191-
isValueVariable: false,
192-
name: 'PluginArray',
193-
},
194-
RTCRtpTransceiver: {
195-
eslintImplicitGlobalSetting: 'readonly',
196-
isTypeVariable: true,
197-
isValueVariable: false,
198-
name: 'RTCRtpTransceiver',
199-
},
200-
RTCStatsReport: {
201-
eslintImplicitGlobalSetting: 'readonly',
202-
isTypeVariable: true,
203-
isValueVariable: false,
204-
name: 'RTCStatsReport',
205-
},
206-
SVGLengthList: {
207-
eslintImplicitGlobalSetting: 'readonly',
208-
isTypeVariable: true,
209-
isValueVariable: false,
210-
name: 'SVGLengthList',
211-
},
212-
SVGNumberList: {
213-
eslintImplicitGlobalSetting: 'readonly',
214-
isTypeVariable: true,
215-
isValueVariable: false,
216-
name: 'SVGNumberList',
217-
},
218-
SVGPointList: {
219-
eslintImplicitGlobalSetting: 'readonly',
220-
isTypeVariable: true,
221-
isValueVariable: false,
222-
name: 'SVGPointList',
223-
},
224-
SVGStringList: {
225-
eslintImplicitGlobalSetting: 'readonly',
226-
isTypeVariable: true,
227-
isValueVariable: false,
228-
name: 'SVGStringList',
229-
},
230-
SourceBufferList: {
231-
eslintImplicitGlobalSetting: 'readonly',
232-
isTypeVariable: true,
233-
isValueVariable: false,
234-
name: 'SourceBufferList',
235-
},
236-
SpeechGrammarList: {
237-
eslintImplicitGlobalSetting: 'readonly',
238-
isTypeVariable: true,
239-
isValueVariable: false,
240-
name: 'SpeechGrammarList',
241-
},
242-
SpeechRecognitionResult: {
243-
eslintImplicitGlobalSetting: 'readonly',
244-
isTypeVariable: true,
245-
isValueVariable: false,
246-
name: 'SpeechRecognitionResult',
247-
},
248-
SpeechRecognitionResultList: {
249-
eslintImplicitGlobalSetting: 'readonly',
250-
isTypeVariable: true,
251-
isValueVariable: false,
252-
name: 'SpeechRecognitionResultList',
253-
},
254-
StyleSheetList: {
255-
eslintImplicitGlobalSetting: 'readonly',
256-
isTypeVariable: true,
257-
isValueVariable: false,
258-
name: 'StyleSheetList',
259-
},
260-
TextTrackCueList: {
261-
eslintImplicitGlobalSetting: 'readonly',
262-
isTypeVariable: true,
263-
isValueVariable: false,
264-
name: 'TextTrackCueList',
265-
},
266-
TextTrackList: {
267-
eslintImplicitGlobalSetting: 'readonly',
268-
isTypeVariable: true,
269-
isValueVariable: false,
270-
name: 'TextTrackList',
271-
},
272-
TouchList: {
273-
eslintImplicitGlobalSetting: 'readonly',
274-
isTypeVariable: true,
275-
isValueVariable: false,
276-
name: 'TouchList',
277-
},
278-
URLSearchParams: {
279-
eslintImplicitGlobalSetting: 'readonly',
280-
isTypeVariable: true,
281-
isValueVariable: false,
282-
name: 'URLSearchParams',
283-
},
284-
VRDisplay: {
285-
eslintImplicitGlobalSetting: 'readonly',
286-
isTypeVariable: true,
287-
isValueVariable: false,
288-
name: 'VRDisplay',
289-
},
290-
WEBGL_draw_buffers: {
291-
eslintImplicitGlobalSetting: 'readonly',
292-
isTypeVariable: true,
293-
isValueVariable: false,
294-
name: 'WEBGL_draw_buffers',
295-
},
296-
WebGL2RenderingContextBase: {
297-
eslintImplicitGlobalSetting: 'readonly',
298-
isTypeVariable: true,
299-
isValueVariable: false,
300-
name: 'WebGL2RenderingContextBase',
301-
},
302-
WebGL2RenderingContextOverloads: {
303-
eslintImplicitGlobalSetting: 'readonly',
304-
isTypeVariable: true,
305-
isValueVariable: false,
306-
name: 'WebGL2RenderingContextOverloads',
307-
},
308-
WebGLRenderingContextBase: {
309-
eslintImplicitGlobalSetting: 'readonly',
310-
isTypeVariable: true,
311-
isValueVariable: false,
312-
name: 'WebGLRenderingContextBase',
313-
},
314-
WebGLRenderingContextOverloads: {
315-
eslintImplicitGlobalSetting: 'readonly',
316-
isTypeVariable: true,
317-
isValueVariable: false,
318-
name: 'WebGLRenderingContextOverloads',
319-
},
9+
AudioParam: TYPE,
10+
AudioParamMap: TYPE,
11+
BaseAudioContext: TYPE,
12+
CSSRuleList: TYPE,
13+
CSSStyleDeclaration: TYPE,
14+
Cache: TYPE,
15+
CanvasPathDrawingStyles: TYPE,
16+
ClientRectList: TYPE,
17+
DOMRectList: TYPE,
18+
DOMStringList: TYPE,
19+
DOMTokenList: TYPE,
20+
DataTransferItemList: TYPE,
21+
FileList: TYPE,
22+
FormData: TYPE,
23+
HTMLAllCollection: TYPE,
24+
HTMLCollectionBase: TYPE,
25+
HTMLCollectionOf: TYPE,
26+
HTMLFormElement: TYPE,
27+
HTMLSelectElement: TYPE,
28+
Headers: TYPE,
29+
IDBDatabase: TYPE,
30+
IDBObjectStore: TYPE,
31+
MediaKeyStatusMap: TYPE,
32+
MediaList: TYPE,
33+
MimeTypeArray: TYPE,
34+
NamedNodeMap: TYPE,
35+
Navigator: TYPE,
36+
NodeList: TYPE,
37+
NodeListOf: TYPE,
38+
Plugin: TYPE,
39+
PluginArray: TYPE,
40+
RTCRtpTransceiver: TYPE,
41+
RTCStatsReport: TYPE,
42+
SVGLengthList: TYPE,
43+
SVGNumberList: TYPE,
44+
SVGPointList: TYPE,
45+
SVGStringList: TYPE,
46+
SourceBufferList: TYPE,
47+
SpeechGrammarList: TYPE,
48+
SpeechRecognitionResult: TYPE,
49+
SpeechRecognitionResultList: TYPE,
50+
StyleSheetList: TYPE,
51+
TextTrackCueList: TYPE,
52+
TextTrackList: TYPE,
53+
TouchList: TYPE,
54+
URLSearchParams: TYPE,
55+
VRDisplay: TYPE,
56+
WEBGL_draw_buffers: TYPE,
57+
WebGL2RenderingContextBase: TYPE,
58+
WebGL2RenderingContextOverloads: TYPE,
59+
WebGLRenderingContextBase: TYPE,
60+
WebGLRenderingContextOverloads: TYPE,
32061
} as Record<string, ImplicitLibVariableOptions>;

0 commit comments

Comments
 (0)