ResolvedModule with an explicitly provided extension property.
Prefer this over ResolvedModule.
If changing this, remember to change moduleResolutionIsEqualTo.
ResolvedModule with an explicitly provided `extension` property. Prefer this over `ResolvedModule`. If changing this, remember to change `moduleResolutionIsEqualTo`.
(extension resolved-module-full)Extension of resolvedFileName. This must match what's at the end of resolvedFileName. This is optional for backwards-compatibility, but will be added if not provided.
Returns: string
Extension of resolvedFileName. This must match what's at the end of resolvedFileName. This is optional for backwards-compatibility, but will be added if not provided. **Returns:** `string`
(external-library-import? resolved-module-full)True if resolvedFileName comes from node_modules.
Returns: boolean | undefined
True if `resolvedFileName` comes from `node_modules`. **Returns:** `boolean | undefined`
(package-id resolved-module-full)Returns: PackageId | undefined
**Returns:** `PackageId | undefined`
(resolved-file-name resolved-module-full)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-full)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-extension! resolved-module-full value)Extension of resolvedFileName. This must match what's at the end of resolvedFileName. This is optional for backwards-compatibility, but will be added if not provided.
Extension of resolvedFileName. This must match what's at the end of resolvedFileName. This is optional for backwards-compatibility, but will be added if not provided.
(set-is-external-library-import! resolved-module-full value)True if resolvedFileName comes from node_modules.
True if `resolvedFileName` comes from `node_modules`.
(set-resolved-file-name! resolved-module-full 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-full 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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |