You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i need to find all methods usage in a library testLib , so i search all modules and classes in testLib/index.d.ts ,then search all methods usage, everything works fine but the constructor usage can't be find .
i use a common.ts to wrap testLib's class , if i import class directly from testLib, constructor references works fine .
please help.
my testProject
--Typing
----testLib
------index.d.ts
--index.ts
--common.ts
//setup project//...//get sourcefile from 'Typing/testLib/index.d.ts'letsourceFile:SourceFile= ...
//get MyClass class in sourceFileletclass:ClassDeclaration= ...
//search refsfor(letfunofclass.getMethods()){letrefs=fun.findReferences()// refs length is 1 ,and it's right ,ref by index.ts }for(letfunofclass.getConstructors()){letrefs=fun.findReferences()//refs length is 0 ,can't find constructor usage}
The text was updated successfully, but these errors were encountered:
i need to find all methods usage in a library
testLib
, so i search all modules and classes intestLib/index.d.ts
,then search all methods usage, everything works fine but theconstructor
usage can't be find .i use a common.ts to wrap testLib's class , if i import class directly from testLib, constructor references works fine .
please help.
my testProject
--Typing
----testLib
------index.d.ts
--index.ts
--common.ts
index.d.ts
common.ts
index.ts
my morph project is simple ,
The text was updated successfully, but these errors were encountered: