Skip to content

Commit 21e9cf8

Browse files
committed
style: typed import extra
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
1 parent f1a09d8 commit 21e9cf8

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/_optPlug.node/__xmlValidators/libxmljs2.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
2020
import { readFile } from 'node:fs/promises'
2121
import { pathToFileURL } from 'node:url'
2222

23-
import { type ParserOptions, parseXml } from 'libxmljs2'
23+
import type { ParserOptions } from 'libxmljs2'
24+
import { parseXml } from 'libxmljs2'
2425

2526
import type { ValidationError } from '../../validation/types'
2627
import type { Functionality, Validator } from '../xmlValidator'

src/spec/_protocol.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
1818
*/
1919

2020
import type { ComponentType, ExternalReferenceType, HashAlgorithm, Vulnerability } from '../enums'
21-
import { type HashContent, NamedLicense, SpdxLicense } from '../models'
21+
import type { HashContent } from '../models'
22+
import { NamedLicense, SpdxLicense } from '../models'
2223
import type { Format, Version } from './enums'
2324

2425
/**
@@ -172,7 +173,7 @@ export class _Spec implements _SpecProtocol {
172173
supportsProperties (model: any): boolean {
173174
switch (true) {
174175
case model instanceof NamedLicense || model instanceof SpdxLicense:
175-
return this.#supportsLicenseProperties
176+
return this.#supportsLicenseProperties
176177
default:
177178
return this.#supportsProperties
178179
}

0 commit comments

Comments
 (0)