Title: Design Meeting Notes, 2026-09-22 · Issue #64399 · microsoft/TypeScript · GitHub
Open Graph Title: Design Meeting Notes, 2026-09-22 · Issue #64399 · microsoft/TypeScript
X Title: Design Meeting Notes, 2026-09-22 · Issue #64399 · microsoft/TypeScript
Description: satisfies on Function Declarations #51556 You can do satisfies on function expressions because you can use them on any expression. const f = ((n, s) => 0) satisfies (n: number, s: string) => number; // workaround, but without contextual ...
Open Graph Description: satisfies on Function Declarations #51556 You can do satisfies on function expressions because you can use them on any expression. const f = ((n, s) => 0) satisfies (n: number, s: string) => number...
X Description: satisfies on Function Declarations #51556 You can do satisfies on function expressions because you can use them on any expression. const f = ((n, s) => 0) satisfies (n: number, s: string) => ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/64399
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Design Meeting Notes, 2026-09-22","articleBody":"\n# `satisfies` on Function Declarations\n\nhttps://github.com/microsoft/TypeScript/issues/51556\n\n* You can do `satisfies` on function expressions because you can use them on any expression.\n ```ts\n const f = ((n, s) => 0) satisfies (n: number, s: string) => number;\n\n // workaround, but without contextual typing:\n\n function f(n: number, s: string): number {\n }\n\n f satisfies (n: number, s: string) => number;\n ```\n* On JSDoc we support full annotation on function declarations.\n* This is pretty similar, right?\n * Could imagine a `(f :: (x: string) => void)` style annotation.\n* Okay, where would this go?\n\n ```ts\n function func(n, s): number /* satisfies SomeType */ {\n }\n ```\n* Why would you want to `satisfies` on a function?\n * Contextual typing of parameters, usually.\n * Is this whole-signature annotation?\n * Not *exactly*, but it gives you the inference.\n* Is this sort of useless for `--isolatedDeclarations`?\n * Yes.\n* Do we want a whole-signature annotation for functions?\n * Maybe `as`?\n\n ```ts\n function func(n, s): number /* as SomeType */ {\n }\n ```\n* Really don't like the use of `as`\n* What about `:` on the binding?\n ```ts\n function (func: SomeType)(n, s) {\n }\n ```\n * Ugh. It makes sense, but really doesn't feel right.\n * Also, there's currently no way to write parentheses on any other binding like in `let` or `const`.\n\n ```ts\n const (func: SomeType) = (n, s) => {\n };\n ```\n* How about `::` at the end?\n * `function func(n, s): number /* :: SomeType */ { ... }`\n * Ehhhh. Ehh?\n* Kind of nice that we could bring along a full overload list with an annotation.\n * Okay but what about inferred parameter types in the presence of overloads?\n * Do nothing - same as we do for overloads today.\n * Wait, why do we still do that? We do something more involved for function expressions contextually typed by types with overloads.\n ```ts\n interface MyFunc {\n (n: number, s: string): number;\n (n: string): void;\n }\n\n const myFunc: MyFunc = (n, s) => {}\n ```\n * Wait: no we do not?\n * Depends on the arity of the contextually typed function.\n * https://github.com/microsoft/TypeScript/issues/25352\n* Really don't like `::`...\n* What about a separate leading declaration?\n ```ts\n function func: MyFunc;\n function func(n, s): number {\n }\n ```\n * Don't entirely hate it... but it doesn't work well with method declarations for classes and objects.\n * It's ambiguous whether you have a leading annotated method, or just a property declaration.\n* Now does this work for generics?\n * \\[\\[Maybe come back to this for notes, seemed fine.]]\n* So `function (func: MyFunc)(n, s): number`?\n * Why does it need parens? `function func: MyFunc(n, s): number`\n * Because it looks like `MyFunc` is being applied or something, or that it's a cast - just that the parameters are part of `MyFunc`, not `func`.\n * Also would be ambiguous with generics.\n* Conclusion?\n * All of this feels awful.\n * \"Sleep on it?\"\n * \"Yeah, maybe hibernate until the spring.\" 🫠\n * \"No, really!\"\n\n# Make Object Type Resolution Idempotent\n\n- https://github.com/microsoft/TypeScript/pull/64372\n- https://github.com/microsoft/TypeScript/issues/62180\n\n* Problem: when object types inherit from base types, we need to carefully track re-entrance of bases (e.g. types that rely on the new derived types).\n * The problem is that intermediate computed state can be witnessed in the middle of this process instead of catching circular dependencies and reporting an error.\n* One change here: reports a stack of types that led to circularity errors.\n * Love this, but do we report in a stable way?\n * We look for 3 occurrences in the stack and we show them in the order they were encountered.\n * But `A, B, C ... A, B, C` can also look like `B, C, A ... B, C, A`.\n * So is it possible to hover over a type and get a different error when checking?\n * It feels like you can get a different order, but only from different locations; at which point, it feels like you should always end up with a stable order in the stack for the same location?\n * ...maybe.\n * Also, should make sure that we possibly truncate the types if they're too long.\n","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2026-09-22T23:11:09Z","url":"https://github.com/microsoft/TypeScript/issues/64399"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a8b50a31-e432-eae3-bc9e-38b2d3d2df10 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EBCC:27D3AD:D0D905:10A2B4D:6B010098 |
| html-safe-nonce | 41c702f75297042315d7421990d9136f96cda2ca017e3ab7bba31cd332a4ca09 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkNDOjI3RDNBRDpEMEQ5MDU6MTBBMkI0RDo2QjAxMDA5OCIsInZpc2l0b3JfaWQiOiI3NzU2MDcyMTAwNjQwNjUzNDY0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b0931828e9ae93d47f234d58a18c141fde43094131a1b5da59bc16f728e26cef |
| hovercard-subject-tag | issue:5546413969 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/64399/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a7d7705159eb3c635f0321b453f7df7faee04e72e27cc3a9faa645b5c9580480/microsoft/TypeScript/issues/64399 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a7d7705159eb3c635f0321b453f7df7faee04e72e27cc3a9faa645b5c9580480/microsoft/TypeScript/issues/64399 |
| og:image:alt | satisfies on Function Declarations #51556 You can do satisfies on function expressions because you can use them on any expression. const f = ((n, s) => 0) satisfies (n: number, s: string) => number... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DanielRosenwasser |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width