/
githubmirror
/
jest
Обзор
Документация
Войти
/
githubmirror
/
jest
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
e2e/native-esm-typescript/double.ts
16 строк
405 B
Đỗ Trọng Hải
fix(runtime): user can use dynamic import in code when running tests (#15842)
01 окт 2025, 15:14
Не верифицирован
01 окт 2025, 15:14
f73c098
Код
Авторство
О чём код?
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ export function double(num: number): number { return num * 2; } export function doubleWithDynamicImport( num: number, ): typeof import('./doubleType') { return (num * 2) as typeof import('./doubleType'); }