(cancellation-token compiler-host)
Returns: CancellationToken
**Returns:** `CancellationToken`
(canonical-file-name compiler-host file-name)
Parameters:
file-name
: string
Returns: string
**Parameters:** - `file-name`: `string` **Returns:** `string`
(create-hash compiler-host data)
Parameters:
data
: string
Returns: string
**Parameters:** - `data`: `string` **Returns:** `string`
(current-directory compiler-host)
Returns: string
**Returns:** `string`
(default-lib-file-name compiler-host options)
Parameters:
options
: CompilerOptions
Returns: string
**Parameters:** - `options`: `CompilerOptions` **Returns:** `string`
(default-lib-location compiler-host)
Returns: string
**Returns:** `string`
(directories compiler-host path)
Parameters:
path
: string
Returns: string[]
**Parameters:** - `path`: `string` **Returns:** `string[]`
(directory-exists? compiler-host directory-name)
Parameters:
directory-name
: string
Returns: boolean
**Parameters:** - `directory-name`: `string` **Returns:** `boolean`
(environment-variable compiler-host name)
Parameters:
name
: string
Returns: string | undefined
**Parameters:** - `name`: `string` **Returns:** `string | undefined`
(file-exists? compiler-host file-name)
Parameters:
file-name
: string
Returns: 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
: Path
Returns: 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
: string
Returns: 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
: string
extensions
: readonly string[]
excludes
: readonly string[] | undefined
includes
: readonly string[]
depth
: number | undefined
Returns: 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
: string
Returns: string | undefined
**Parameters:** - `file-name`: `string` **Returns:** `string | undefined`
(realpath compiler-host path)
Resolve a symbolic link.
Parameters:
path
: string
Returns: 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
: string
redirected-reference
: ResolvedProjectReference | undefined
options
: CompilerOptions
containing-source-file
: SourceFile
reused-names
: readonly StringLiteralLike[] | undefined
Returns: 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
: string
reused-names
: string[] | undefined
redirected-reference
: ResolvedProjectReference | undefined
options
: CompilerOptions
containing-source-file
: SourceFile | undefined
Returns: (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
: string
redirected-reference
: ResolvedProjectReference | undefined
options
: CompilerOptions
containing-source-file
: SourceFile | undefined
reused-names
: readonly T[] | undefined
Returns: 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
: string
redirected-reference
: ResolvedProjectReference | undefined
options
: CompilerOptions
containing-file-mode
: ResolutionMode
Returns: (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
: string
language-version-or-options
: ScriptTarget | CreateSourceFileOptions
on-error
: ((message: string) => void) | undefined
should-create-new-source-file?
: boolean | undefined
Returns: 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
: 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
**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
: string
Returns: 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 is a website building & hosting documentation for Clojure/Script libraries
× close