We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
https://www.typescriptlang.org/play?importHelpers=true&module=1&allowSyntheticDefaultImports=true#code/KYDwDg9gTgLgBAMwK4DsDGMCWEVysARyU3wCVgBnCAGwDdgBhaYACgEoAuOCmKTFAOYBYAFABvUQEh8MJFFwok1anACGFNSgCeogL6jRoSLESoM2XJgC2xmAFEQvVQB4AKnFAxgKACYbV2gB8LCiqVsBcPHyCnHAAClAQVpgUwG6BohIi0sCy8nDWtiz4RCTA5FR0jMzsbHqiQA
export function requireResolveCore(): string { return null as any } export function importExtra<T extends any>(name: string): Promise<T> { return import(requireResolveCore()) }
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.importExtra = exports.requireResolveCore = void 0; function requireResolveCore() { return null; } exports.requireResolveCore = requireResolveCore; function importExtra(name) { return Promise.resolve().then(() => __importStar(require(requireResolveCore()))); } exports.importExtra = importExtra;
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.importExtra = exports.requireResolveCore = void 0; const tslib_1 = require("tslib"); function requireResolveCore() { return null; } exports.requireResolveCore = requireResolveCore; function importExtra(name) { return Promise.resolve().then(() => (0, tslib_1.__importStar)(require(requireResolveCore()))); } exports.importExtra = importExtra;
The text was updated successfully, but these errors were encountered:
Simplified:
const f = import("" as string)
Sorry, something went wrong.
Sounds like a duplicate of #27415.
No branches or pull requests
Bug Report
🔎 Search Terms
🕗 Version & Regression Information
⏯ Playground Link
https://www.typescriptlang.org/play?importHelpers=true&module=1&allowSyntheticDefaultImports=true#code/KYDwDg9gTgLgBAMwK4DsDGMCWEVysARyU3wCVgBnCAGwDdgBhaYACgEoAuOCmKTFAOYBYAFABvUQEh8MJFFwok1anACGFNSgCeogL6jRoSLESoM2XJgC2xmAFEQvVQB4AKnFAxgKACYbV2gB8LCiqVsBcPHyCnHAAClAQVpgUwG6BohIi0sCy8nDWtiz4RCTA5FR0jMzsbHqiQA
💻 Code
🙁 Actual behavior
🙂 Expected behavior
The text was updated successfully, but these errors were encountered: