(cancellation-token compiler-host)Returns: CancellationToken
**Returns:** `CancellationToken`
(canonical-file-name compiler-host file-name)Parameters:
file-name: stringReturns: string
**Parameters:** - `file-name`: `string` **Returns:** `string`
(create-hash compiler-host data)Parameters:
data: stringReturns: string
**Parameters:** - `data`: `string` **Returns:** `string`
(current-directory compiler-host)Returns: string
**Returns:** `string`
(default-lib-file-name compiler-host options)Parameters:
options: CompilerOptionsReturns: string
**Parameters:** - `options`: `CompilerOptions` **Returns:** `string`
(default-lib-location compiler-host)Returns: string
**Returns:** `string`
(directories compiler-host path)Parameters:
path: stringReturns: string[]
**Parameters:** - `path`: `string` **Returns:** `string[]`
(directory-exists? compiler-host directory-name)Parameters:
directory-name: stringReturns: boolean
**Parameters:** - `directory-name`: `string` **Returns:** `boolean`
(environment-variable compiler-host name)Parameters:
name: stringReturns: string | undefined
**Parameters:** - `name`: `string` **Returns:** `string | undefined`
(file-exists? compiler-host file-name)Parameters:
file-name: stringReturns: boolean
**Parameters:** - `file-name`: `string` **Returns:** `boolean`
(has-invalidated-resolutions? compiler-host file-path)If provided along with custom resolveModuleNames or resolveTypeReferenceDirectives, used to determine if unchanged file path needs to re-resolve modules/type reference directives
Parameters:
file-path: PathReturns: boolean
If provided along with custom resolveModuleNames or resolveTypeReferenceDirectives, used to determine if unchanged file path needs to re-resolve modules/type reference directives **Parameters:** - `file-path`: `Path` **Returns:** `boolean`
(js-doc-parsing-mode compiler-host)Returns: JSDocParsingMode | undefined
**Returns:** `JSDocParsingMode | undefined`
(module-resolution-cache compiler-host)Returns the module resolution cache used by a provided resolveModuleNames implementation so that any non-name module resolution operations (eg, package.json lookup) can reuse it
Returns: ModuleResolutionCache | undefined
Returns the module resolution cache used by a provided `resolveModuleNames` implementation so that any non-name module resolution operations (eg, package.json lookup) can reuse it **Returns:** `ModuleResolutionCache | undefined`
(parsed-command-line compiler-host file-name)Parameters:
file-name: stringReturns: ParsedCommandLine | undefined
**Parameters:** - `file-name`: `string` **Returns:** `ParsedCommandLine | undefined`
(read-directory compiler-host root-dir extensions)(read-directory compiler-host root-dir extensions excludes)(read-directory compiler-host root-dir extensions excludes includes)(read-directory compiler-host root-dir extensions excludes includes depth)Parameters:
root-dir: stringextensions: readonly string[]excludes: readonly string[] | undefinedincludes: readonly string[]depth: number | undefinedReturns: string[]
**Parameters:** - `root-dir`: `string` - `extensions`: `readonly string[]` - `excludes`: `readonly string[] | undefined` - `includes`: `readonly string[]` - `depth`: `number | undefined` **Returns:** `string[]`
(read-file compiler-host file-name)Parameters:
file-name: stringReturns: string | undefined
**Parameters:** - `file-name`: `string` **Returns:** `string | undefined`
(realpath compiler-host path)Resolve a symbolic link.
Parameters:
path: stringReturns: string
Resolve a symbolic link. **Parameters:** - `path`: `string` **Returns:** `string`
(resolve-module-name-literals compiler-host module-literals containing-file)(resolve-module-name-literals compiler-host
module-literals
containing-file
redirected-reference)(resolve-module-name-literals compiler-host
module-literals
containing-file
redirected-reference
options)(resolve-module-name-literals compiler-host
module-literals
containing-file
redirected-reference
options
containing-source-file)(resolve-module-name-literals compiler-host
module-literals
containing-file
redirected-reference
options
containing-source-file
reused-names)Parameters:
module-literals: readonly StringLiteralLike[]containing-file: stringredirected-reference: ResolvedProjectReference | undefinedoptions: CompilerOptionscontaining-source-file: SourceFilereused-names: readonly StringLiteralLike[] | undefinedReturns: readonly ResolvedModuleWithFailedLookupLocations[]
**Parameters:** - `module-literals`: `readonly StringLiteralLike[]` - `containing-file`: `string` - `redirected-reference`: `ResolvedProjectReference | undefined` - `options`: `CompilerOptions` - `containing-source-file`: `SourceFile` - `reused-names`: `readonly StringLiteralLike[] | undefined` **Returns:** `readonly ResolvedModuleWithFailedLookupLocations[]`
(resolve-module-names compiler-host module-names containing-file)(resolve-module-names compiler-host module-names containing-file reused-names)(resolve-module-names compiler-host
module-names
containing-file
reused-names
redirected-reference)(resolve-module-names compiler-host
module-names
containing-file
reused-names
redirected-reference
options)(resolve-module-names compiler-host
module-names
containing-file
reused-names
redirected-reference
options
containing-source-file)Parameters:
module-names: string[]containing-file: stringreused-names: string[] | undefinedredirected-reference: ResolvedProjectReference | undefinedoptions: CompilerOptionscontaining-source-file: SourceFile | undefinedReturns: (ResolvedModule | undefined)[]
**Parameters:** - `module-names`: `string[]` - `containing-file`: `string` - `reused-names`: `string[] | undefined` - `redirected-reference`: `ResolvedProjectReference | undefined` - `options`: `CompilerOptions` - `containing-source-file`: `SourceFile | undefined` **Returns:** `(ResolvedModule | undefined)[]`
(resolve-type-reference-directive-references compiler-host
type-directive-references
containing-file)(resolve-type-reference-directive-references compiler-host
type-directive-references
containing-file
redirected-reference)(resolve-type-reference-directive-references compiler-host
type-directive-references
containing-file
redirected-reference
options)(resolve-type-reference-directive-references compiler-host
type-directive-references
containing-file
redirected-reference
options
containing-source-file)(resolve-type-reference-directive-references compiler-host
type-directive-references
containing-file
redirected-reference
options
containing-source-file
reused-names)Parameters:
type-directive-references: readonly T[]containing-file: stringredirected-reference: ResolvedProjectReference | undefinedoptions: CompilerOptionscontaining-source-file: SourceFile | undefinedreused-names: readonly T[] | undefinedReturns: readonly ResolvedTypeReferenceDirectiveWithFailedLookupLocations[]
**Parameters:** - `type-directive-references`: `readonly T[]` - `containing-file`: `string` - `redirected-reference`: `ResolvedProjectReference | undefined` - `options`: `CompilerOptions` - `containing-source-file`: `SourceFile | undefined` - `reused-names`: `readonly T[] | undefined` **Returns:** `readonly ResolvedTypeReferenceDirectiveWithFailedLookupLocations[]`
(resolve-type-reference-directives compiler-host
type-reference-directive-names
containing-file)(resolve-type-reference-directives compiler-host
type-reference-directive-names
containing-file
redirected-reference)(resolve-type-reference-directives compiler-host
type-reference-directive-names
containing-file
redirected-reference
options)(resolve-type-reference-directives compiler-host
type-reference-directive-names
containing-file
redirected-reference
options
containing-file-mode)Parameters:
type-reference-directive-names: string[] | readonly FileReference[]containing-file: stringredirected-reference: ResolvedProjectReference | undefinedoptions: CompilerOptionscontaining-file-mode: ResolutionModeReturns: (ResolvedTypeReferenceDirective | undefined)[]
**Parameters:** - `type-reference-directive-names`: `string[] | readonly FileReference[]` - `containing-file`: `string` - `redirected-reference`: `ResolvedProjectReference | undefined` - `options`: `CompilerOptions` - `containing-file-mode`: `ResolutionMode` **Returns:** `(ResolvedTypeReferenceDirective | undefined)[]`
(source-file compiler-host file-name language-version-or-options)(source-file compiler-host file-name language-version-or-options on-error)(source-file compiler-host
file-name
language-version-or-options
on-error
should-create-new-source-file?)Parameters:
file-name: stringlanguage-version-or-options: ScriptTarget | CreateSourceFileOptionson-error: ((message: string) => void) | undefinedshould-create-new-source-file?: boolean | undefinedReturns: SourceFile | undefined
**Parameters:** - `file-name`: `string` - `language-version-or-options`: `ScriptTarget | CreateSourceFileOptions` - `on-error`: `((message: string) => void) | undefined` - `should-create-new-source-file?`: `boolean | undefined` **Returns:** `SourceFile | undefined`
(source-file-by-path compiler-host file-name path language-version-or-options)(source-file-by-path compiler-host
file-name
path
language-version-or-options
on-error)(source-file-by-path compiler-host
file-name
path
language-version-or-options
on-error
should-create-new-source-file?)Parameters:
file-name: stringpath: Pathlanguage-version-or-options: ScriptTarget | CreateSourceFileOptionson-error: ((message: string) => void) | undefinedshould-create-new-source-file?: boolean | undefinedReturns: SourceFile | undefined
**Parameters:** - `file-name`: `string` - `path`: `Path` - `language-version-or-options`: `ScriptTarget | CreateSourceFileOptions` - `on-error`: `((message: string) => void) | undefined` - `should-create-new-source-file?`: `boolean | undefined` **Returns:** `SourceFile | undefined`
(trace compiler-host s)Parameters:
s: stringReturns: void
**Parameters:** - `s`: `string` **Returns:** `void`
(use-case-sensitive-file-names? compiler-host)Returns: boolean
**Returns:** `boolean`
(write-file compiler-host)Returns: WriteFileCallback
**Returns:** `WriteFileCallback`
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 |