sefiutils 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/seUtils.ts DELETED
@@ -1,448 +0,0 @@
1
- /**
2
- * (C) Jens von Pilgrim, 2022
3
- */
4
- import * as fs from "fs";
5
- import * as fsPromises from "fs/promises";
6
- import path from "path";
7
- import { By, Locator, WebDriver, WebElement } from 'selenium-webdriver';
8
-
9
- export async function execScript<T>(driver: WebDriver, scriptName: string, fct: string): Promise<T> {
10
- const scriptPath = path.join(path.dirname(__filename), scriptName);
11
- const script = fs.readFileSync(scriptPath, "utf-8");
12
- const res = await driver.executeScript(script + `
13
- return ${fct}();
14
- `);
15
- return res as T;
16
- }
17
-
18
- export interface Bounds {
19
- top: number;
20
- left: number;
21
- bottom: number;
22
- right: number;
23
- }
24
-
25
-
26
- export function boundsToString(bounds: Bounds) {
27
- return `(${bounds.left};${bounds.top})x(${bounds.right};${bounds.bottom})`
28
- }
29
-
30
- export function toFloor(bounds: Bounds[]) {
31
- const floors: Bounds[] = [];
32
- for (const b of bounds) {
33
- floors.push({
34
- top: Math.floor(b.top),
35
- bottom: Math.floor(b.bottom),
36
- left: Math.floor(b.left),
37
- right: Math.floor(b.right)
38
- })
39
- }
40
- return floors;
41
- }
42
-
43
- /**
44
- * Coordinates are sometimes floats. We compare two numbers with a delta of 1 to ignore rounding problems.
45
- */
46
- export function circa(n1: number, n2: number) {
47
- const delta = n1 - n2;
48
- return Math.abs(delta) < 1;
49
- }
50
-
51
-
52
-
53
- export async function waitFor<T>(callback: () => Promise<T>, timeout=1000, intervalTime=100): Promise<T> {
54
- // try first time
55
- const start = new Date().getTime();
56
- try {
57
- const result = await callback();
58
- return result;
59
- } catch (error) {
60
- // ignore error
61
- }
62
- // if error, try until timeout ms have passed
63
- return new Promise<T>((resolve, reject) => {
64
- const interval = setInterval(async () => {
65
- try {
66
- const result = await callback();
67
- clearInterval(interval);
68
- resolve(result);
69
- } catch (error) {
70
- const duration = new Date().getTime() - start;
71
- if (duration > timeout) {
72
- clearInterval(interval);
73
- reject(error);
74
- }
75
- }
76
- }, intervalTime);
77
- });
78
- }
79
-
80
-
81
- /**
82
- * Takes screenshot of current window and saves it to the given file.
83
- * The folder is created if it does not yet exists.
84
- */
85
- export async function saveScreenshot(driver: WebDriver, fileName: string): Promise<void> {
86
- const pngBase64 = await driver.takeScreenshot();
87
- const dirName = path.dirname(fileName);
88
- if (!fs.existsSync(dirName)) {
89
- await fsPromises.mkdir(dirName, { recursive: true });
90
- }
91
- await fsPromises.writeFile(fileName, pngBase64, 'base64');
92
- }
93
-
94
-
95
-
96
- /**
97
- * Helper function for printing out an element (tag, id if present)
98
- */
99
- export async function describe(we: WebElement) {
100
- let s = await we.getTagName();
101
- const id = await we.getAttribute("id");
102
- if (id) {
103
- s += "#" + id;
104
- } else {
105
- const clazz = await we.getAttribute("class");
106
- if (clazz) {
107
- s += "." + clazz;
108
- }
109
- let text = await we.getText();
110
- s += ` ("${text.substring(0, 7)}${text.length > 7 ? '…' : ''})"`;
111
- }
112
- return s;
113
- }
114
-
115
- /**
116
- * Gets the element by means of `WebElement` by its id attribute.
117
- */
118
- export async function getElementById(driver: WebDriver, id: string): Promise<WebElement> {
119
- const el = await driver.findElement(By.id(id));
120
- return el;
121
- }
122
-
123
- /**
124
- * Gets the first element by means of `WebElement` by its class attribute.
125
- */
126
- export async function getElementByClass(driver: WebDriver, clazz: string): Promise<WebElement> {
127
- const el = await driver.findElement(By.className(clazz));
128
- return el;
129
- }
130
-
131
- /**
132
- * Gets the first element by means of `WebElement` by its tag name.
133
- */
134
- export async function getElementByTag(driver: WebDriver, tagName: string): Promise<WebElement> {
135
- const el = await driver.findElement(By.css(tagName));
136
- return el;
137
- }
138
-
139
- /**
140
- * Returns first element containing given text or undefined.
141
- *
142
- * Test in browser console: `$x("//*[contains(text(), 'Hello')]")`
143
- */
144
- export async function getElementContainingText(driver: WebDriver, text: string): Promise<WebElement|undefined> {
145
- try {
146
- // cf. https://stackoverflow.com/questions/3655549/xpath-containstext-some-string-doesnt-work-when-used-with-node-with-more
147
- //const el = await driver.findElement(By.xpath(`//*[contains(text(), "${text}")]`));
148
- const el = await driver.findElement(By.xpath(`//*[text()[contains(., '${text}')]]`));
149
- return el;
150
- } catch (error) {
151
- return undefined;
152
- }
153
- }
154
-
155
-
156
- /**
157
- * Returns the bounding client rect (the bounding box relative to the viewport)
158
- * of an element (found by its is attribute) by means of a JavaScript call.
159
- */
160
- export async function getBoundingClientRect(driver: WebDriver, id: string): Promise<DOMRect> {
161
- const bcr = await driver.executeScript('return document.getElementById("' + id + '").getBoundingClientRect()');
162
- return bcr as DOMRect;
163
- }
164
-
165
- /**
166
- * Returns all {@link getBoundingClientRect} values of the elements
167
- * found in the given element list.
168
- * The element list is computed by means of JavaScript code,
169
- * e.g. `document.getElementsByClassName('grid').item(0).children`.
170
- *
171
- * @param elementList JavaScript code to determine the element list
172
- */
173
- export async function getBoundingClientRects(driver: WebDriver, jsElementList: string): Promise<DOMRect[]> {
174
- const bcr = await driver.executeScript(
175
- `return (()=>{
176
- const elements = ${jsElementList};
177
- const bounds=[];
178
- for (let el of elements) { bounds.push(el.getBoundingClientRect()) }
179
- return bounds;
180
- })()`) as DOMRect[];
181
- return bcr;
182
- }
183
-
184
- /**
185
- * Returns the rects using the driver API.
186
- */
187
- export async function getRects(driver: WebDriver, locator: Locator): Promise<Bounds[]> {
188
- const elements = await driver.findElements(locator);
189
- const bounds: Bounds[] = [];
190
- for (const element of elements) {
191
- const rect = await element.getRect();
192
- bounds.push({
193
- top: rect.x, left: rect.y,
194
- bottom: rect.x + rect.width, right: rect.y + rect.height
195
- });
196
- }
197
- return bounds;
198
- }
199
-
200
- /**
201
- * Returns the rects of the first child (of each found element) using the driver API.
202
- */
203
- export async function getRectsOfContent(driver: WebDriver, locator: Locator): Promise<Bounds[]> {
204
- const elements = await driver.findElements(locator);
205
- const bounds: Bounds[] = [];
206
- for (const element of elements) {
207
- const rect = await element.getRect();
208
- bounds.push({
209
- top: rect.x, left: rect.y,
210
- bottom: rect.x + rect.width, right: rect.y + rect.height
211
- });
212
- }
213
- return bounds;
214
- }
215
-
216
-
217
-
218
-
219
- /**
220
- * Returns all text content of the elements
221
- * found in the given element list.
222
- * The elements list is computed by means of JavaScript code,
223
- * e.g. `document.getElementsByClassName('grid').item(0).children`.
224
- *
225
- * This is useful in combination with {@link getBoundingClientRects} in
226
- * order to describe the items.
227
- *
228
- * @param elementList JavaScript code to determine the element list
229
- */
230
- export async function getTextContents(driver: WebDriver, jsElementList: string): Promise<string[]> {
231
- const tcs = await driver.executeScript(
232
- `const elements = ${jsElementList};
233
- const tcs=[];
234
- for (let el of elements) { tcs.push(el.textContent) }
235
- return tcs;
236
- `) as string[];
237
- return tcs;
238
- }
239
-
240
- /**
241
- * Returns all computed styles of the elements
242
- * found in the given element list.
243
- * The elements list is computed by means of JavaScript code,
244
- * e.g. `document.getElementsByClassName('grid').item(0).children`.
245
- *
246
- * @param elementList JavaScript code to determine the element list
247
- */
248
- export async function getComputedStyles(driver: WebDriver, jsElementList: string, style: string): Promise<string[]> {
249
- const tcs = await driver.executeScript(
250
- `const elements = ${jsElementList};
251
- const tcs=[];
252
- for (let el of elements) { tcs.push(getComputedStyle(el).${style}) }
253
- return tcs;
254
- `) as string[];
255
- return tcs;
256
- }
257
-
258
-
259
- /**
260
- * Returns the inner size of the windows bounding client rect (the bounding box relative to the viewport)
261
- * of an element (found by its is attribute) by means of a JavaScript call.
262
- * The window size contains the scrollbars. I.e. it is a bit larger than {@link getViewPortSize}.
263
- */
264
- export async function getInnerSizeOfWindow(driver: WebDriver): Promise<{ width: number, height: number }> {
265
- const w = await driver.executeScript('return window.innerWidth') as number;
266
- const h = await driver.executeScript('return window.innerHeight') as number;
267
- return { width: w, height: h };
268
- }
269
-
270
- /**
271
- * Returns the viewport size, which is the inner window size but not with the scrollbars.
272
- * I.e. the viewport size is a bit smaller than {@link getInnerSizeOfWindow} (if scrollbars are visible).
273
- * The value is retrieved by means of JavaScript.
274
- */
275
- export async function getViewPortSize(driver: WebDriver): Promise<{ width: number, height: number }> {
276
- const [clientWidthOfHTML, clientHeightOfHTML] = await Promise.all([
277
- driver.executeScript("return document.documentElement.clientWidth"),
278
- driver.executeScript("return document.documentElement.clientHeight")]) as number[];
279
- return { width: clientWidthOfHTML, height: clientHeightOfHTML };
280
- }
281
-
282
- /**
283
- * Returns true if the element identified by its id attribute is with the view port.
284
- * That does not necessarily means that it is visible, since its display or visible attribute may
285
- * hide the element.
286
- */
287
- export async function isInViewPort(driver: WebDriver, id: string) {
288
- const innerSize = await getInnerSizeOfWindow(driver);
289
- const [x, y] = await Promise.all([
290
- driver.executeScript('return window.scrollX'),
291
- driver.executeScript('return window.scrollY')]) as number[];
292
- const bounds = await getBoundingClientRect(driver, id);
293
- return bounds.x + bounds.width >= x && bounds.y + bounds.height >= y
294
- && bounds.x < x + innerSize.width && bounds.y < y + innerSize.height
295
- }
296
-
297
- /**
298
- * Sets the window so that the {@link getViewPortSize} matches the given width and height.
299
- */
300
- export async function setBrowserWindowSize(driver: WebDriver, width: number, height: number): Promise<void> {
301
- // const rect = await driver.manage().window().getRect();
302
- await waitForSetRect(driver, width, height);
303
- // await driver.manage().window().setRect({ width: width, height: height });
304
- // return waitFor(async () => {
305
- // const rectAfter = await driver.manage().window().getRect();
306
-
307
- // if (check && (rectAfter.width != width || rectAfter.height != height)) {
308
- // throw new Error(`Cannot set window to size (${width}, ${height}). Size is probably too small or too large, got ${rectAfter.width}/${rectAfter.height}, was before ${rect.width}/${rect.height}.`);
309
- // }
310
- // });
311
- }
312
-
313
- async function waitForSetRect(driver: WebDriver, width: number, height: number): Promise<void> {
314
- const rectBefore = await driver.manage().window().getRect();
315
-
316
- await driver.manage().window().setRect({ width: width, height: height });
317
- return waitFor(async () => {
318
- const rectAfter = await driver.manage().window().getRect();
319
- if (rectAfter.width != width || rectAfter.height != height) {
320
- throw new Error(`Cannot set window to size (${width}, ${height}). Size is probably too small or too large, got ${rectAfter.width}/${rectAfter.height}, was before ${rectBefore.width}/${rectBefore.height}.`);
321
- }
322
- });
323
- }
324
-
325
- /**
326
- * Sets the window so that the {@link getViewPortSize} matches the given width and height. Warning: This does not work reliably.
327
- */
328
- export async function setViewPortSize(driver: WebDriver, width: number, height: number): Promise<void> {
329
- const rect = await driver.manage().window().getRect();
330
- const innerBefore = await getInnerSizeOfWindow(driver);
331
- const deltaX = rect.width - innerBefore.width;
332
- const deltaY = rect.height - innerBefore.height;
333
- await waitForSetRect(driver, width + deltaX, height + deltaY);
334
-
335
- const [innerAfter, viewport] = await Promise.all([getInnerSizeOfWindow(driver), getViewPortSize(driver)]);
336
-
337
- // adjust scrollbars if necessary
338
- const sbHeight = innerAfter.height - viewport.height;
339
- const sbWidth = innerAfter.width - viewport.width;
340
- await waitForSetRect(driver, width + deltaX + sbWidth, height + deltaY + sbHeight);
341
- }
342
-
343
- export async function getInheritedBackgroundColorsByJS(driver: WebDriver, nodelist: string) {
344
- const colors = await driver.executeScript(`
345
- const list = ${nodelist};
346
- function getDefaultBackground() {
347
- var div = document.createElement("div")
348
- document.head.appendChild(div)
349
- var bg = getComputedStyle(div).backgroundColor
350
- document.head.removeChild(div)
351
- return bg
352
- }
353
- const defaultStyle = getDefaultBackground()
354
- function getInheritedBackgroundColor(el) {
355
- var backgroundColor = getComputedStyle(el).backgroundColor
356
- if (backgroundColor != defaultStyle) return backgroundColor
357
- if (!el.parentElement) return defaultStyle
358
- return getInheritedBackgroundColor(el.parentElement)
359
- }
360
- const colors = []
361
- for (let e of list) {
362
- colors.push(getInheritedBackgroundColor(e));
363
- }
364
- return colors;
365
- `) as string[];
366
- return colors;
367
- }
368
-
369
- export async function getInheritedColorsByJS(driver: WebDriver, nodelist: string) {
370
- const colors = await driver.executeScript(`
371
- const list = ${nodelist};
372
- function getDefaultColor() {
373
- var div = document.createElement("div")
374
- document.head.appendChild(div)
375
- var bg = getComputedStyle(div).color
376
- document.head.removeChild(div)
377
- return bg
378
- }
379
- const defaultStyle = getDefaultColor()
380
- function getInheritedColor(el) {
381
- var color = getComputedStyle(el).color
382
- if (color != defaultStyle) return color
383
- if (!el.parentElement) return defaultStyle
384
- return getInheritedColor(el.parentElement)
385
- }
386
- const colors = []
387
- for (let e of list) {
388
- colors.push(getInheritedColor(e));
389
- }
390
- return colors;
391
- `) as string[];
392
- return colors;
393
- }
394
-
395
- function rgb2hex(rgba: string) {
396
- return "#" +
397
- rgba.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+\.{0,1}\d*))?\)$/)!
398
- .slice(1)
399
- .map((n, i) => (i === 3
400
- ? Math.round(parseFloat(n) * 255)
401
- : parseFloat(n)).toString(16).padStart(2, '0').replace('NaN', ''))
402
- .join('');
403
- }
404
-
405
- export async function getAllTextNodes(driver: WebDriver): Promise<{ text: string; color: string; background: string; line: string; }[]> {
406
- const res = await driver.executeScript(`
407
-
408
- const TRANSPARENT = "rgba(0, 0, 0, 0)";
409
- const all = [];
410
- const view = document.defaultView;
411
- function collect(e) {
412
- const styles = view.getComputedStyle(e);
413
- const pStyles = view.getComputedStyle(e.parentElement);
414
- const childNodes = e.childNodes;
415
- for (let i=0; i<childNodes.length; i++) {
416
- const node = childNodes.item(i);
417
- if (node instanceof Element) {
418
- collect(node);
419
- } else if (node instanceof Text && node.textContent.trim().length>0) {
420
- all.push({
421
- text: node.textContent.trim(),
422
- color: styles?.color!==TRANSPARENT?styles?.color:pStyles?.color,
423
- background: styles?.backgroundColor!==TRANSPARENT?styles?.backgroundColor:pStyles?.backgroundColor,
424
- line: styles?.textDecorationLine==='none'?pStyles?.textDecorationLine:styles?.textDecorationLine
425
- });
426
- }
427
- }
428
- }
429
- collect(document.body);
430
-
431
-
432
- return all;
433
- `) as { text: string, color: string, background: string, line: string }[];
434
-
435
- res.forEach(e => {
436
- e.color = rgb2hex(e.color);
437
- e.background = rgb2hex(e.background);
438
- });
439
-
440
-
441
- return res;
442
- }
443
-
444
- export async function getButtonsAndHRefs(driver: WebDriver): Promise<WebElement[]> {
445
- const elements: WebElement[] = await execScript(driver,
446
- "execScripts/dom.js", "getButtonsAndHRefs");
447
- return elements;
448
- }
@@ -1,7 +0,0 @@
1
- {
2
- "extends": "../tsconfig.json",
3
- "compilerOptions": {
4
- "noEmit": true
5
- },
6
- "include": ["../src/**/*", "./**/*"]
7
- }
package/tsconfig.json DELETED
@@ -1,102 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- /* Visit https://aka.ms/tsconfig.json to read more about this file */
4
-
5
- /* Projects */
6
- // "incremental": true, /* Enable incremental compilation */
7
- // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
8
- // "tsBuildInfoFile": "./", /* Specify the folder for .tsbuildinfo incremental compilation files. */
9
- // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects */
10
- // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
11
- // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
12
-
13
- /* Language and Environment */
14
- "target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
15
- // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
16
- // "jsx": "preserve", /* Specify what JSX code is generated. */
17
- // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
18
- // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
19
- // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h' */
20
- // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
21
- // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.` */
22
- // "reactNamespace": "", /* Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit. */
23
- // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
24
- // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
25
-
26
- /* Modules */
27
- "module": "commonjs", /* Specify what module code is generated. */
28
- // "rootDir": "./", /* Specify the root folder within your source files. */
29
- // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
30
- // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
31
- // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
32
- // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
33
- // "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */
34
- // "types": [], /* Specify type package names to be included without being referenced in a source file. */
35
- // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
36
- // "resolveJsonModule": true, /* Enable importing .json files */
37
- // "noResolve": true, /* Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project. */
38
-
39
- /* JavaScript Support */
40
- // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */
41
- // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
42
- // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */
43
-
44
- /* Emit */
45
- "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
46
- "declarationMap": true, /* Create sourcemaps for d.ts files. */
47
- // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
48
- "sourceMap": true, /* Create source map files for emitted JavaScript files. */
49
- // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */
50
- "outDir": "lib", /* Specify an output folder for all emitted files. */
51
- // "removeComments": true, /* Disable emitting comments. */
52
- // "noEmit": true, /* Disable emitting files from a compilation. */
53
- // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
54
- // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types */
55
- // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
56
- // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
57
- // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
58
- // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
59
- // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
60
- // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
61
- // "newLine": "crlf", /* Set the newline character for emitting files. */
62
- // "stripInternal": true, /* Disable emitting declarations that have `@internal` in their JSDoc comments. */
63
- // "noEmitHelpers": true, /* Disable generating custom helper functions like `__extends` in compiled output. */
64
- // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
65
- // "preserveConstEnums": true, /* Disable erasing `const enum` declarations in generated code. */
66
- // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
67
- // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
68
-
69
- /* Interop Constraints */
70
- // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
71
- // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
72
- "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */
73
- // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
74
- "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
75
-
76
- /* Type Checking */
77
- "strict": true, /* Enable all strict type-checking options. */
78
- // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied `any` type.. */
79
- // "strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */
80
- // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
81
- // "strictBindCallApply": true, /* Check that the arguments for `bind`, `call`, and `apply` methods match the original function. */
82
- // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
83
- // "noImplicitThis": true, /* Enable error reporting when `this` is given the type `any`. */
84
- // "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
85
- // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
86
- // "noUnusedLocals": true, /* Enable error reporting when a local variables aren't read. */
87
- // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read */
88
- // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
89
- // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
90
- // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
91
- // "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
92
- // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
93
- // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
94
- // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
95
- // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
96
-
97
- /* Completeness */
98
- // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
99
- "skipLibCheck": true /* Skip type checking all .d.ts files. */
100
- },
101
- "include": ["src/**/*"] /* omit "src" in lib */
102
- }
File without changes
File without changes