Skip to content

Commit 1581750

Browse files
refactor: improve typings
1 parent 1eb1a38 commit 1581750

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/apidom-ls/src/services/validation/linter-functions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -801,13 +801,13 @@ export const standardLinterfunctions: FunctionItem[] = [
801801
const value = toValue(element);
802802

803803
const filterSiblingsOAS2 = (
804-
el: Element & { key: { content?: string }; content: { value?: string } },
804+
el: Element & { key?: { content?: string }; content: { value?: string } },
805805
) => isString(el) && el.key?.content === key && toValue(el.content.value) === value;
806806

807807
const filterSiblingsOAS3 = (el: Element) =>
808808
isObject(el) && el.hasKey(key) && toValue(el.get(key)) === value;
809809

810-
const elements = filter((el) => {
810+
const elements = filter((el: Element) => {
811811
const classes: string[] = toValue(el.getMetaProperty('classes', []));
812812

813813
return (

0 commit comments

Comments
 (0)