Represents the result of module resolution. Module resolution will pick up tsx/jsx/js files even if '--jsx' and '--allowJs' are turned off. The Program will then filter results based on these flags.
Prefer to return a ResolvedModuleFull
so that the file type does not have to be inferred.
Represents the result of module resolution. Module resolution will pick up tsx/jsx/js files even if '--jsx' and '--allowJs' are turned off. The Program will then filter results based on these flags. Prefer to return a `ResolvedModuleFull` so that the file type does not have to be inferred.
(external-library-import? resolved-module)
True if resolvedFileName
comes from node_modules
.
Returns: boolean | undefined
True if `resolvedFileName` comes from `node_modules`. **Returns:** `boolean | undefined`
(resolved-file-name resolved-module)
Path of the file the module was resolved to.
Returns: string
Path of the file the module was resolved to. **Returns:** `string`
(resolved-using-ts-extension? resolved-module)
True if the original module reference used a .ts extension to refer directly to a .ts file, which should produce an error during checking if emit is enabled.
Returns: boolean | undefined
True if the original module reference used a .ts extension to refer directly to a .ts file, which should produce an error during checking if emit is enabled. **Returns:** `boolean | undefined`
(set-is-external-library-import! resolved-module value)
True if resolvedFileName
comes from node_modules
.
True if `resolvedFileName` comes from `node_modules`.
(set-resolved-file-name! resolved-module value)
Path of the file the module was resolved to.
Path of the file the module was resolved to.
(set-resolved-using-ts-extension! resolved-module value)
True if the original module reference used a .ts extension to refer directly to a .ts file, which should produce an error during checking if emit is enabled.
True if the original module reference used a .ts extension to refer directly to a .ts file, which should produce an error during checking if emit is enabled.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close