File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
packages/jest-transform/src Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -845,21 +845,13 @@ class ScriptTransformer {
845845 }
846846}
847847
848- // TODO: do we need to define the generics twice?
849- export async function createTranspilingRequire (
850- config : Config . ProjectConfig ,
851- ) : Promise <
852- < TModuleType = unknown > (
853- resolverPath : string ,
854- applyInteropRequireDefault ?: boolean ,
855- ) => Promise < TModuleType >
856- > {
848+ export async function createTranspilingRequire ( config : Config . ProjectConfig ) {
857849 const transformer = await createScriptTransformer ( config ) ;
858850
859851 return async function requireAndTranspileModule < TModuleType = unknown > (
860852 resolverPath : string ,
861853 applyInteropRequireDefault = false ,
862- ) {
854+ ) : Promise < TModuleType > {
863855 const transpiledModule =
864856 await transformer . requireAndTranspileModule < TModuleType > (
865857 resolverPath ,
You can’t perform that action at this time.
0 commit comments