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
We already have a pattern that supports mixin factory patterns.
The problem is that it doesn't work well for abstract classes.
Not assignable to constructor functions.
There's a hack to write Function & { prototype: Ctor }, but given class Foo<T> {}, trying to infer from a typeof Foo to Ctor will lose the genericity of Foo.
Also accepts non-constructor functions, which isn't exactly desirable.
Does the output of a mixin function also product an abstract signature?
You can manually toggle it with the modifier.
But having some sort of class type syntax.
Able to model methods that are still marked as abstract.
Want to get a sense of whether this is interesting to others.
Kind of a DT-like repo that aggregates tsconfigs that we think are good.
"You say 'recommended' but it fires the wrong neurons for me and makes me mad. My experience with eslint, tslint - the 'recommended' rules make no sense."
useDefineForClassFields - maybe not great because the emit isn't great.
skipLibCheck - is that actually good?
Diverging between tsc --init and tsconfig/recommended
Making
tsserver.js
a Libraryhttps://github.com/microsoft/TypeScript/pull/39291/files?w=1
tsserver.js
is used for general editing,typescript.js
is used for aggregating some data in other contexts - kind of want to consolidate.tsserverlibrary.js
.Minifying our Outputs
#25658
Abstract Constructors and Construct Signatures
#36392
Function & { prototype: Ctor }
, but givenclass Foo<T> {}
, trying to infer from atypeof Foo
toCtor
will lose the genericity ofFoo
.class
type syntax.abstract
.Recommended Base TSConfigs
tsconfig/bases#15
useDefineForClassFields
- maybe not great because the emit isn't great.skipLibCheck
- is that actually good?tsc --init
andtsconfig/recommended
recommended
might not be a great ideaDefault
tsc init
Options#39354
#39311
The text was updated successfully, but these errors were encountered: