es-membrane

Home > ts-morph-structures > ImportManager > fromSourceFile

ImportManager.fromSourceFile() method

Build an ImportManager from a source file.

Signature:

static fromSourceFile(absolutePathToModule: string, sourceFile: SourceFileImpl): ImportManager;

Parameters

Parameter Type Description
absolutePathToModule string  
sourceFile SourceFileImpl  

Returns:

ImportManager