TypeScript Version: 2.4.0 / nightly (2.5.0-dev.201xxxxx)
2.4.0
Code
This is a frontend project.
let timer: number = setTimeout(()=>{}, 1000);
Expected behavior:
Compile success
Actual behavior:
Compile error for type of timer not match that in @types/node
@types/node is a dependency that @types/protobufjs need.
But in frontend project, it always be brought by some lib (maybe can run both at browser and server)
Need some way to exclude @types/node for frontend project.
So suggest this:
{
..
excludeTypes: ['@types/node']
}
TypeScript Version: 2.4.0 / nightly (2.5.0-dev.201xxxxx)
2.4.0
Code
This is a frontend project.
Expected behavior:
Compile success
Actual behavior:
Compile error for type of timer not match that in
@types/node@types/nodeis a dependency that@types/protobufjsneed.But in frontend project, it always be brought by some lib (maybe can run both at browser and server)
Need some way to exclude @types/node for frontend project.
So suggest this: