Open MengLinMaker opened 6 days ago
Depth here refers to the depth in compat data json.
NewExpression
Node of Type
<Class>
Note: This will detect any alias to class. But will fail when a custom class name is same as API class.
Identifier
Node of Symbol
<instance>
Type
<Class>
PropertyAccessExpression
and Symbol
<Property>
Note: Need to remove _static
from <Property>_static
<EventName>_event
in addEventListener("<EventName>", callback)
EventTarget
, probably needs manual implementation.<ParamName>_parameter
or <ParamName>_parameter_optional
or object <ParamObjectName>_<ParamObjectPropertyName>_parameter
deflate
deflate-raw
gzip
optionsClass instantiations solved for issue #45 in PR #47
Class property access solved for issue #46 in PR #48
Useful tool for exploring TypeScript AST:
TS AST viewer for this example:
Types to infer
Instance
VariableDeclaration + PropertyAccessExpression:
const cache = new Cache()
Cache
Method
PropertyAccessExpression:
cache.add("test.html")
{ (request: RequestInfo | URL): Promise<void>; (request: RequestInfo | URL): Promise<void>; }
Types to ignore
Class
NewExpression + VariableDeclaration:
const _Cache = Cache
{ new (): Cache; prototype: Cache; }