Title: On DT, lambda-tester is broken by better alias preservation · Issue #51698 · microsoft/TypeScript · GitHub
Open Graph Title: On DT, lambda-tester is broken by better alias preservation · Issue #51698 · microsoft/TypeScript
X Title: On DT, lambda-tester is broken by better alias preservation · Issue #51698 · microsoft/TypeScript
Description: lambda-tester is broken by #51152. Conditional type instantiation seems to proceed differently for an alias when it was constructed without type parameters that are later defaulted: type Actual = lambdaTester.Verifier Open Graph Description: lambda-tester is broken by #51152. Conditional type instantiation seems to proceed differently for an alias when it was constructed without type parameters that are later defaulted: type Actual = l...
X Description: lambda-tester is broken by #51152. Conditional type instantiation seems to proceed differently for an alias when it was constructed without type parameters that are later defaulted: type Actual = l...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/51698
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"On DT, lambda-tester is broken by better alias preservation","articleBody":"lambda-tester is broken by #51152.\r\n\r\nConditional type instantiation seems to proceed differently for an alias when it was constructed without type parameters that are later defaulted:\r\n\r\n```ts\r\ntype Actual = lambdaTester.Verifier\u003clambdaTester.HandlerResult\u003cHandler\u003e\u003e\r\ntype Expected = lambdaTester.Verifier\u003clambdaTester.HandlerResult\u003cHandler\u003cany, any\u003e\u003e\u003e\r\n\r\n// from lambda-tester's index.d.ts:\r\ntype HandlerResult\u003cT extends Handler\u003e = T extends Handler\u003cany, infer TResult\u003e ? TResult : never;\r\ntype Verifier\u003cS\u003e = S extends HandlerError\u003cHandler\u003e\r\n ? (S extends string ? VerifierFn\u003cstring\u003e\r\n : S extends Error ? VerifierFn\u003cError\u003e\r\n : never)\r\n : VerifierFn\u003cS\u003e;\r\nclass LambdaTester\u003cT extends Handler\u003e {\r\n // ....\r\n expectSucceed(verifier: Verifier\u003cHandlerResult\u003cT\u003e\u003e): Promise\u003cany\u003e;\r\n // ....\r\n}\r\n// from aws-lambda's index.d.ts:\r\nexport type Handler\u003cTEvent = any, TResult = any\u003e = (\r\n event: TEvent,\r\n context: Context,\r\n callback: Callback\u003cTResult\u003e,\r\n) =\u003e void | Promise\u003cTResult\u003e;\r\n```\r\n\r\n`Actual` and `Expected` are both `VerifierFn\u003cstring\u003e | VerifierFn\u003cError\u003e | VerifierFn\u003cany\u003e` before #51152. Afterwards, `Actual` is `VerifierFn\u003cunknown\u003e`.\r\n\r\n","author":{"url":"https://github.com/sandersn","@type":"Person","name":"sandersn"},"datePublished":"2022-11-30T17:44:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/51698/TypeScript/issues/51698"}
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:07296d50-d302-b946-e44d-ad5ca5f1e0a2 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id C5CA:28F19D:1B1555:26DEEC:6A61FDA3 html-safe-nonce 3cdb3337e5a07a3ae04ec5e24ca14bf26cf25676f2db36a333fe75296b28ba54 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUNBOjI4RjE5RDoxQjE1NTU6MjZERUVDOjZBNjFGREEzIiwidmlzaXRvcl9pZCI6IjM1MTU2MTA0NDc4NzczNzMzNDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== visitor-hmac b2eed5d5313c857060bbd48c87818eb8cf937f8882d32b2a13462836666e26cc hovercard-subject-tag issue:1470007109 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/51698/issue_layout twitter:image https://opengraph.githubassets.com/191e97410bccdf08f92c9abffc3938da2fcf84492c16cf6f3214851b87f9682c/microsoft/TypeScript/issues/51698 twitter:card summary_large_image og:image https://opengraph.githubassets.com/191e97410bccdf08f92c9abffc3938da2fcf84492c16cf6f3214851b87f9682c/microsoft/TypeScript/issues/51698 og:image:alt lambda-tester is broken by #51152. Conditional type instantiation seems to proceed differently for an alias when it was constructed without type parameters that are later defaulted: type Actual = l... og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username sandersn hostname github.com expected-hostname github.com None 9e41a6fd863e96b9c7e9185dc317bf107dbbf8cb10efd6dea957211963f33775 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 2ed5e9c44acb35dcc1d752e449d2a6f7a6164b7b ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.