Comments (2)
A solution to this problem would need to distinguish between methods that should only be used on instances of MyClass and methods that can be used on any object satisfying an interface that MyClass satisfies. For example, all the methods on Array.prototype are "generic" in the sense that they can be applied to any "array-like" object, i.e. one with a length property and numeric properties, not just to instances of Array.
from typescript.
This is now covered by #3694. PR is in #6739
from typescript.
Related Issues (20)
- Type Narrowing Incorrect on Exported Variable HOT 2
- Remove `@type` tag from hover info
- Default type imported with `import type` from not-found module not flagged when used as a value HOT 3
- Allow a type guard function to also return a boolean literal whenever possible HOT 3
- Error in 'getValidSourceFile' during 'signatureHelp'
- Error in 'unknown' during 'getCodeFixes'
- Error in 'withPackageId' during 'updateOpen'
- Error in 'processChildNode' during 'getCodeFixes'
- Error in 'getArgumentOrParameterListInfo' during 'signatureHelp'
- `Extract` not narrowing type union in mapped type passed as generic HOT 4
- Regression when spreading Types in an Alias: TS1265: A rest element cannot follow another rest element. HOT 4
- Add missing awaits when destructuring properties from a promisified type HOT 2
- VSCode does not show some typescript `isolatedModules` errors HOT 3
- Type inference bug with `using` and object literals
- Return type incorrectly inferred as void HOT 5
- .d.ts emitted declarations should not include local variable names from parameter destructuring HOT 2
- [regression - 5.4] Generated `.d.ts` file contains invalid types HOT 6
- The initialization order of the Class Accessor Decorator has been changed. HOT 2
- Allow Infinity, -Infinity and NaN as an enum key name for string enum HOT 3
- Consistent rules naming HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typescript.