@sebastianwessel/quickjs v2.1.1
@sebastianwessel/quickjs / getTypescriptSupport
Function: getTypescriptSupport()
getTypescriptSupport(
enabled
,typescriptImportFile
?,options
?):Promise
<{transpileFile
: (value
,_compilerOptions
?,_fileName
?,_diagnostics
?,_moduleName
?) =>string
;transpileNestedDirectoryJSON
: (mountFsJson
,_option
?) =>NestedDirectoryJSON
;transpileVirtualFs
: (fs
,_options
?) =>IFs
; }>
Defined in: src/getTypescriptSupport.ts:18
Add support for handling typescript files and code. Requires the optional dependency 'typescript'.
Parameters
enabled
boolean
= false
typescriptImportFile?
string
options?
CompilerOptions
Returns
Promise
<{ transpileFile
: (value
, _compilerOptions
?, _fileName
?, _diagnostics
?, _moduleName
?) => string
; transpileNestedDirectoryJSON
: (mountFsJson
, _option
?) => NestedDirectoryJSON
; transpileVirtualFs
: (fs
, _options
?) => IFs
; }>