Closed
Description
- add new function
isTypeScopeBoundary
- TypeAlias
- Interface
- MappedType
- ConditionalType
- maybe CallExpression and NewExpression: WIP - Allow infer types in expression type argument positions microsoft/TypeScript#22368
isFunctionScopeBoundary
add boolean parameter to always consider SourceFile a boundary- remove all type-only boundaries
- introduce
ScopeBoundarySelector
export const enum ScopeBoundary {
None = 0,
Function = 1,
Block = 2,
Type = 4,
}
export const enum ScopeBoundarySelector {
Function = ScopeBoundary.Function,
Block = Function | ScopeBounary.Block,
Type = Block | ScopeBoundary.Type,
}