chore(universal-xml-plugin): remove dead code; typecheck all js sources

This commit is contained in:
Christopher Hiller
2023-02-22 11:32:54 -08:00
parent ab5b285714
commit 6be7488eef
2 changed files with 3 additions and 10 deletions

View File

@@ -1,20 +1,12 @@
/* eslint-disable no-case-declarations */
import BasePlugin from 'appium/plugin';
import {BasePlugin} from 'appium/plugin';
import {errors} from 'appium/driver';
import {transformSourceXml} from './source';
import {transformQuery} from './xpath';
import log from './logger';
export default class UniversalXMLPlugin extends BasePlugin {
commands = [
'getPageSource',
'findElement',
'findElements',
'findElementFromElement',
'findElementsFromElement',
];
async getPageSource(next, driver, sessId, addIndexPath = false) {
const source = next ? await next() : await driver.getPageSource();
const metadata = {};

View File

@@ -1,6 +1,7 @@
{
"compilerOptions": {
"outDir": "build"
"outDir": "build",
"checkJs": true
},
"extends": "@appium/tsconfig/tsconfig.plugin.json",
"include": ["lib"]