Skip to content

Commit 6661437

Browse files
committed
chore: fix lint and add ignore for build
1 parent 8288224 commit 6661437

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

driver/lib/sessions/base64url.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import _ from 'lodash';
22
import { util } from '@appium/support';
33

4-
export const decode = (input: string | {'ELEMENT': string} | {[util.W3C_WEB_ELEMENT_IDENTIFIER]: string}): string => {
4+
export const decode = (input: string | {ELEMENT: string} | {[util.W3C_WEB_ELEMENT_IDENTIFIER]: string}): string => {
55
let base64String: string = ``;
66
if (_.isString(input)) {
77
base64String = input as string;
88
} else if (_.has(input, util.W3C_WEB_ELEMENT_IDENTIFIER)) {
99
base64String = input[util.W3C_WEB_ELEMENT_IDENTIFIER] as string;
1010
} else if (_.has(input, 'ELEMENT')) {
11-
base64String = input['ELEMENT'] as string;
11+
// @ts-ignore TS2339
12+
base64String = input.ELEMENT as string;
1213
} else {
1314
throw new Error(
1415
`Input is is expceted to be a base64-encoded string or a valid element object. ` +

0 commit comments

Comments
 (0)