We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a0aef0 commit ea6502aCopy full SHA for ea6502a
src/lib/params.ts
@@ -41,7 +41,7 @@ export const getStartSection = (lines: Array<string>, info: SectionInfo, matches
41
export const extractParams = (section: string): TransformOptions => Object.assign({}, ...(section.match(/\s+param::(\w+)::(.*?)::/g)?.map(
42
target => target.match(/param::(\w+)::(.*?)::/),
43
).filter(
44
- (items): items is Array<string> => items !== null && items[1]! in converter,
+ (items): items is RegExpMatchArray => items !== null && items[1]! in converter,
45
).map(
46
items => ({ [items[1]!]: converter[items[1]!](items[2]) }),
47
) ?? []));
0 commit comments