Skip to content

Commit 5bfe25c

Browse files
committed
fix: fix hints generating script
1 parent 7acfab3 commit 5bfe25c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/buildVscodeHints.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function getTypesClasses (types) {
1010
const name = rawClass.match(/(?<=class\s+).*?(?=\s+extends)/gs)[0]
1111

1212
const propsRaw = rawClass.substring(rawClass.indexOf('{') + 1, rawClass.indexOf('}'))
13-
let props = propsRaw.match(/([a-zA-Z]+:).*?(?=[a-zA-Z]+:|$)/g)
13+
let props = propsRaw.match(/([a-zA-Z?]+:).*?(?=[a-zA-Z?]+:|$)/g)
1414
if (props) {
1515
props = props.map(prop => prop.trim())
1616
}

0 commit comments

Comments
 (0)