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
{{ message }}
This repository was archived by the owner on Mar 25, 2021. It is now read-only.
import{Server,createServer}from'http';// unused variable: 'Server' (while it is used as return type)exportfunctiongetServer(){returncreateServer();}
with tslint.json:
{
"rules": {
"no-unused-variable": true
}
}
Actual behavior
An error unused variable: 'Server' is reported, but it is used as a return type and removing Server from imports causes a native typescript error: Return type of exported function has or is using name 'Server' from external module "http" but cannot be named