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 a81f3bc commit f2fa024Copy full SHA for f2fa024
build/buildVscodeHints.js
@@ -4,7 +4,8 @@ const classes = getTypesClasses(types)
4
5
function getTypesClasses (types) {
6
let classes = {}
7
- const rawClasses = types.replace(/(\r|\n)/ig, '').match(/(.*?class).*?(})/g)
+ const rawClasses = types.replace(/(\n|\r)/ig, '')
8
+ .match(/(export declare|declare class).*?(})/g)
9
rawClasses.forEach(rawClass => {
10
const name = rawClass.match(/(?<=class\s+).*?(?=\s+extends)/gs)[0]
11
0 commit comments