Skip to content

Commit 1e1bce1

Browse files
build(deps-dev): bump @types/xml2js from 0.4.9 to 0.4.11 #3628
Bumps [@types/xml2js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/xml2js) from 0.4.9 to 0.4.11. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/xml2js) --- updated-dependencies: - dependency-name: "@types/xml2js" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * fix: build Error: src/lambda/utils.ts(105,63): error TS2345: Argument of type '(err: Error, result: SampleRequestManifest) => void' is not assignable to parameter of type '(err: Error | null, result: any) => void'. Types of parameters 'err' and 'err' are incompatible. Type 'Error | null' is not assignable to type 'Error'. Type 'null' is not assignable to type 'Error'. Error: The process '/Users/runner/hostedtoolcache/node/16.20.1/x64/bin/npm' failed with exit code 2 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Justin M. Keyes <[email protected]>
1 parent bfd220f commit 1e1bce1

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3502,7 +3502,7 @@
35023502
"@types/uuid": "^9.0.1",
35033503
"@types/vscode": "^1.65.0",
35043504
"@types/vscode-webview": "^1.57.1",
3505-
"@types/xml2js": "^0.4.8",
3505+
"@types/xml2js": "^0.4.11",
35063506
"@typescript-eslint/eslint-plugin": "^5.59.0",
35073507
"@typescript-eslint/parser": "^5.59.1",
35083508
"@vscode/codicons": "^0.0.33",

src/lambda/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export async function getSampleLambdaPayloads(): Promise<SampleRequest[]> {
102102

103103
const inputs: SampleRequest[] = []
104104

105-
xml2js.parseString(sampleInput, { explicitArray: false }, (err: Error, result: SampleRequestManifest) => {
105+
xml2js.parseString(sampleInput, { explicitArray: false }, (err: Error | null, result: SampleRequestManifest) => {
106106
if (err) {
107107
return
108108
}

0 commit comments

Comments
 (0)