Title: TS 3.9 - No overload matches this call · Issue #38241 · microsoft/TypeScript · GitHub
Open Graph Title: TS 3.9 - No overload matches this call · Issue #38241 · microsoft/TypeScript
X Title: TS 3.9 - No overload matches this call · Issue #38241 · microsoft/TypeScript
Description: TypeScript Version: 3.9.1-rc Search Terms: No overload matches this call Code export interface SyncNgccOptions { basePath: string; targetEntryPointPath?: string; async?: false; } export type AsyncNgccOptions = Omit Open Graph Description: TypeScript Version: 3.9.1-rc Search Terms: No overload matches this call Code export interface SyncNgccOptions { basePath: string; targetEntryPointPath?: string; async?: false; } export type AsyncN...
X Description: TypeScript Version: 3.9.1-rc Search Terms: No overload matches this call Code export interface SyncNgccOptions { basePath: string; targetEntryPointPath?: string; async?: false; } export type AsyncN...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/38241
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TS 3.9 - No overload matches this call","articleBody":"\u003c!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨\r\n\r\nHalf of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common \"Bugs\" That Aren't Bugs section!\r\n\r\nPlease help us by doing the following steps before logging an issue:\r\n * Search: https://github.com/Microsoft/TypeScript/search?type=Issues\r\n * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n\r\nPlease fill in the *entire* template below.\r\n-->\r\n\r\n\u003c!--\r\nPlease try to reproduce the issue with the latest published version. It may have already been fixed.\r\nFor npm: `typescript@next`\r\nThis is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly\r\n-->\r\n**TypeScript Version:** 3.9.1-rc\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:**\r\nNo overload matches this call\r\n\r\n**Code**\r\n```ts\r\nexport interface SyncNgccOptions {\r\n basePath: string;\r\n targetEntryPointPath?: string;\r\n async?: false;\r\n}\r\n\r\nexport type AsyncNgccOptions = Omit\u003cSyncNgccOptions, 'async'> & { async: true };\r\n\r\nexport function process(options: AsyncNgccOptions): Promise\u003cvoid>;\r\nexport function process(options: SyncNgccOptions): void;\r\nexport function process(options: AsyncNgccOptions | SyncNgccOptions): void | Promise\u003cvoid> {\r\n return mainNgcc(options);\r\n}\r\n\r\n\r\nexport function mainNgcc(options: AsyncNgccOptions): Promise\u003cvoid>;\r\nexport function mainNgcc(options: SyncNgccOptions): void;\r\nexport function mainNgcc(options: AsyncNgccOptions | SyncNgccOptions): void | Promise\u003cvoid> {\r\n}\r\n```\r\n\r\n**Expected behavior:**\r\nNo error as per TS 3.8\r\n\r\n**Actual behavior:**\r\nError\r\n\r\n_No overload matches this call. Overload 1 of 2, '(options: AsyncNgccOptions): Promise\u003cvoid>', gave the following error. Argument of type 'SyncNgccOptions | AsyncNgccOptions' is not assignable to parameter of type 'AsyncNgccOptions'. Type 'SyncNgccOptions' is not assignable to type 'AsyncNgccOptions'. Type 'SyncNgccOptions' is not assignable to type '{ async: true; }'. Types of property 'async' are incompatible. Type 'false | undefined' is not assignable to type 'true'. Type 'undefined' is not assignable to type 'true'. Overload 2 of 2, '(options: SyncNgccOptions): void', gave the following error. Argument of type 'SyncNgccOptions | AsyncNgccOptions' is not assignable to parameter of type 'SyncNgccOptions'. Type 'AsyncNgccOptions' is not assignable to type 'SyncNgccOptions'. Types of property 'async' are incompatible. Type 'true' is not assignable to type 'false | undefined'._\r\n\r\n\r\n**Playground Link:** https://www.typescriptlang.org/v2/en/play?ts=3.9.0-beta#code/KYDwDg9gTgLgBASwHY2FAZgQwMbDgZQE8lsA5Ac22wHkwYEIkBnOAbwCg4u4AjTJ4AAVMMABYAuOExhRk5ANyduMTFHLAYAURRRCgiMhjCxAfknTZSBUq79i2M3CwAbAYoC+7dqEiw4MQjA8AEEmewoqWnpGFgBeOGoAWwQYAB4iEgiaOgZmABo4AHI7EkKAPjgAMjY4EuxJGQBXPHdFb3BoeHRGkmikODAoCFwmJgAKCByYyVDwymy+pgBKSUEh5IFUgDcDABMyxR9Opx7sPoGhkfHJxckMsnmo3OXJHYRdw46-bt7ci+HgKMJlNmDMwplHiCWAAfAhzSJQlZwN67OCwtYQDbAbZ7CocbhwKAaRpQfqJTDILLAxZLDxedq+Lqnc7kynzanPMHwhbPJEYrE494HBnHH5nP6spBUm6cuEQhE0157T6Mk6-RhwSXSqFc+U8mJouUPBW8pXvQ38hCbFF49ieIA\r\n\r\n**Related Issues:** \u003c!-- Did you find other bugs that looked similar? -->\r\n","author":{"url":"https://github.com/alan-agius4","@type":"Person","name":"alan-agius4"},"datePublished":"2020-04-29T09:42:04Z","url":"https://github.com/microsoft/TypeScript/issues/38241"}
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:c99f3a08-21ac-2f87-0030-fdd30398d15a current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id 846C:3F8A67:96D12F:CAA0AF:6B00EA95 html-safe-nonce a8f59bc722719ae6bfd04e6f626aa65431710549db7e4a67ff41f68b226217f8 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDZDOjNGOEE2Nzo5NkQxMkY6Q0FBMEFGOjZCMDBFQTk1IiwidmlzaXRvcl9pZCI6IjI1NDMzOTYwMjg2NTMwMzgyMjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== visitor-hmac ebf56cf4c6df562fd237a3d6eea1aa0538c5b66ed393d99ea0dc8e0476c61bcc hovercard-subject-tag issue:608917266 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/38241/issue_layout twitter:image https://opengraph.githubassets.com/e83a7f02ddc6a06d3e8be78b11928774fc9ccc3689cce3d404a2092c27fa04e2/microsoft/TypeScript/issues/38241 twitter:card summary_large_image og:image https://opengraph.githubassets.com/e83a7f02ddc6a06d3e8be78b11928774fc9ccc3689cce3d404a2092c27fa04e2/microsoft/TypeScript/issues/38241 og:image:alt TypeScript Version: 3.9.1-rc Search Terms: No overload matches this call Code export interface SyncNgccOptions { basePath: string; targetEntryPointPath?: string; async?: false; } export type AsyncN... og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username alan-agius4 hostname github.com expected-hostname github.com None 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc 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 9983dd5da06943f833c971dd5b6bc988e2858be5 ui-target full theme-color #1e2327 color-scheme light dark react-app-name issues
URLs of crawlers that visited me.