-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Design Meeting Notes, 8/16/2024 #59658
Comments
My vote goes for |
FWIW
|
how about replacing namespace - is there any good way to write this without requiring a second module or a separate type for an object containing the Foo functions?
|
API for exposing inferred type arguments of calls
#59637
Signature -> Type[]
right? Or do you need something else? You have type arguments of signatures, but there are other type parameters in question.getResolvedSignature
, grab the type arguments, followed byinstantiateTypes
with the original signature's mapper? As suggested in the isssue.Flag for Banning TypeScript-Specific Runtime Constructs
--experimental-strip-types
which replaces type constructs with whitespace.--noTranspiledFeatures
--typeSyntaxOnly
--disallowRuntimeSyntax
--noLegacySyntax
--noRegerts
--verbatimModuleSyntax
and--isolatedModules
?typeSyntaxOnly
the best.class C { constructor(public prop: number) {} }
enum
of any formnamespace
of any formimport foo = require("foo");
import foo = bar.baz;
export =
--experimental-strip-types
, which seems motivated because Node's sourcemap support is slow..ts
, not.d.ts
const foo = {...} as enum
.Wouldn't be a full substitute.
import foo = require(...)
?const foo = require(...)
in some way, but would need a flag since a lot of code assumes this isany
.const m = require("m") as typeof import("m")
.The text was updated successfully, but these errors were encountered: