Skip to content

Commit ea6502a

Browse files
fix: type error
1 parent 6a0aef0 commit ea6502a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/params.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const getStartSection = (lines: Array<string>, info: SectionInfo, matches
4141
export const extractParams = (section: string): TransformOptions => Object.assign({}, ...(section.match(/\s+param::(\w+)::(.*?)::/g)?.map(
4242
target => target.match(/param::(\w+)::(.*?)::/),
4343
).filter(
44-
(items): items is Array<string> => items !== null && items[1]! in converter,
44+
(items): items is RegExpMatchArray => items !== null && items[1]! in converter,
4545
).map(
4646
items => ({ [items[1]!]: converter[items[1]!](items[2]) }),
4747
) ?? []));

0 commit comments

Comments
 (0)