If a file is opened and no tsconfig (or jsconfig) is found, the file and its imports/references are put into an InferredProject.
If a file is opened and no tsconfig (or jsconfig) is found, the file and its imports/references are put into an InferredProject.
(add-missing-file-root inferred-project file-name)Parameters:
file-name: NormalizedPathReturns: void
**Parameters:** - `file-name`: `NormalizedPath` **Returns:** `void`
(add-missing-file-watcher inferred-project)Returns: any
**Returns:** `any`
(add-root inferred-project info)Parameters:
info: ScriptInfoReturns: void
**Parameters:** - `info`: `ScriptInfo` **Returns:** `void`
(all-project-errors inferred-project)Get all the project errors
Returns: readonly Diagnostic[]
Get all the project errors **Returns:** `readonly Diagnostic[]`
(builder-state inferred-project)Returns: any
**Returns:** `any`
(cancellation-token inferred-project)Returns: any
**Returns:** `any`
(clear-generated-file-watch inferred-project)Returns: any
**Returns:** `any`
(compilation-settings inferred-project)Returns: CompilerOptions
**Returns:** `CompilerOptions`
(compile-on-save-affected-file-list inferred-project script-info)Parameters:
script-info: ScriptInfoReturns: string[]
**Parameters:** - `script-info`: `ScriptInfo` **Returns:** `string[]`
(compile-on-save-enabled? inferred-project)Returns: boolean
**Returns:** `boolean`
(compiler-options inferred-project)Returns: any
**Returns:** `any`
(contains-file? inferred-project filename)(contains-file? inferred-project filename require-open?)Parameters:
filename: NormalizedPathrequire-open?: boolean | undefinedReturns: boolean
**Parameters:** - `filename`: `NormalizedPath` - `require-open?`: `boolean | undefined` **Returns:** `boolean`
(contains-script-info? inferred-project info)Parameters:
info: ScriptInfoReturns: boolean
**Parameters:** - `info`: `ScriptInfo` **Returns:** `boolean`
(create-generated-file-watcher inferred-project)Returns: any
**Returns:** `any`
(current-directory inferred-project)Returns: string
**Returns:** `string`
(default-lib-file-name inferred-project)Returns: string
**Returns:** `string`
(detach-script-info-from-project inferred-project)Returns: any
**Returns:** `any`
(detach-script-info-if-not-root inferred-project)Returns: any
**Returns:** `any`
(directories inferred-project path)Parameters:
path: stringReturns: string[]
**Parameters:** - `path`: `string` **Returns:** `string[]`
(directory-exists? inferred-project path)Parameters:
path: stringReturns: boolean
**Parameters:** - `path`: `string` **Returns:** `boolean`
(disable-language-service inferred-project)(disable-language-service inferred-project last-file-exceeded-program-size)Parameters:
last-file-exceeded-program-size: string | undefinedReturns: void
**Parameters:** - `last-file-exceeded-program-size`: `string | undefined` **Returns:** `void`
(document-registry inferred-project)Returns: any
**Returns:** `any`
(emit-file inferred-project script-info write-file)Returns true if emit was conducted
Parameters:
script-info: ScriptInfowrite-file: (path: string, data: string, writeByteOrderMark?: boolean | undefined) => voidReturns: EmitResult
Returns true if emit was conducted **Parameters:** - `script-info`: `ScriptInfo` - `write-file`: `(path: string, data: string, writeByteOrderMark?: boolean | undefined) => void` **Returns:** `EmitResult`
(enable-global-plugins inferred-project options)Parameters:
options: CompilerOptionsReturns: void
**Parameters:** - `options`: `CompilerOptions` **Returns:** `void`
(enable-language-service inferred-project)Returns: void
**Returns:** `void`
(enable-plugin inferred-project plugin-config-entry search-paths)Parameters:
plugin-config-entry: PluginImportsearch-paths: string[]Returns: void
**Parameters:** - `plugin-config-entry`: `PluginImport` - `search-paths`: `string[]` **Returns:** `void`
(error inferred-project s)Parameters:
s: stringReturns: void
**Parameters:** - `s`: `string` **Returns:** `void`
(excluded-files inferred-project)Returns: readonly NormalizedPath[]
**Returns:** `readonly NormalizedPath[]`
(external-files inferred-project)Returns: any
**Returns:** `any`
(file-exists? inferred-project file)Parameters:
file: stringReturns: boolean
**Parameters:** - `file`: `string` **Returns:** `boolean`
(file-names inferred-project)(file-names inferred-project exclude-files-from-external-libraries?)(file-names inferred-project
exclude-files-from-external-libraries?
exclude-config-files?)Parameters:
exclude-files-from-external-libraries?: boolean | undefinedexclude-config-files?: boolean | undefinedReturns: NormalizedPath[]
**Parameters:** - `exclude-files-from-external-libraries?`: `boolean | undefined` - `exclude-config-files?`: `boolean | undefined` **Returns:** `NormalizedPath[]`
(files-to-string inferred-project write-project-file-names?)Parameters:
write-project-file-names?: booleanReturns: string
**Parameters:** - `write-project-file-names?`: `boolean` **Returns:** `string`
(generated-files-map inferred-project)Returns: any
**Returns:** `any`
(get-cancellation-token inferred-project)Returns: HostCancellationToken
**Returns:** `HostCancellationToken`
(get-compiler-options inferred-project)Returns: CompilerOptions
**Returns:** `CompilerOptions`
(get-external-files inferred-project)(get-external-files inferred-project update-level)Parameters:
update-level: ProgramUpdateLevel | undefinedReturns: SortedReadonlyArray<string>
**Parameters:** - `update-level`: `ProgramUpdateLevel | undefined` **Returns:** `SortedReadonlyArray<string>`
(get-language-service inferred-project)(get-language-service inferred-project ensure-synchronized?)Parameters:
ensure-synchronized?: boolean | undefinedReturns: LanguageService
**Parameters:** - `ensure-synchronized?`: `boolean | undefined` **Returns:** `LanguageService`
(get-root-files inferred-project)Returns: NormalizedPath[]
**Returns:** `NormalizedPath[]`
(global-project-errors inferred-project)Get the errors that dont have any file name associated
Returns: readonly Diagnostic[]
Get the errors that dont have any file name associated **Returns:** `readonly Diagnostic[]`
(has-config-file? inferred-project config-file-path)Parameters:
config-file-path: NormalizedPathReturns: boolean
**Parameters:** - `config-file-path`: `NormalizedPath` **Returns:** `boolean`
(has-roots? inferred-project)Returns: boolean
**Returns:** `boolean`
(initial-load-pending inferred-project)Returns: () => boolean
**Returns:** `() => boolean`
(install-package inferred-project options)Parameters:
options: InstallPackageOptionsReturns: Promise<ApplyCodeActionCommandResult>
**Parameters:** - `options`: `InstallPackageOptions` **Returns:** `Promise<ApplyCodeActionCommandResult>`
(js-doc-parsing-mode inferred-project)Returns: JSDocParsingMode | undefined
**Returns:** `JSDocParsingMode | undefined`
(js-only-project? inferred-project)Returns: boolean
**Returns:** `boolean`
(known-types-package-name? inferred-project name)Parameters:
name: stringReturns: boolean
**Parameters:** - `name`: `string` **Returns:** `boolean`
(language-service inferred-project)Returns: LanguageService
**Returns:** `LanguageService`
(language-service-enabled? inferred-project)Returns: boolean
**Returns:** `boolean`
(last-reported-file-names inferred-project)Set of files that was returned from the last call to getChangesSinceVersion.
Returns: any
Set of files that was returned from the last call to getChangesSinceVersion. **Returns:** `any`
(last-reported-version inferred-project)Last version that was reported.
Returns: any
Last version that was reported. **Returns:** `any`
(log inferred-project s)Parameters:
s: stringReturns: void
**Parameters:** - `s`: `string` **Returns:** `void`
(mark-as-dirty inferred-project)Returns: void
**Returns:** `void`
(missing-files-map inferred-project)Returns: any
**Returns:** `any`
(non-ts-project? inferred-project)Returns: boolean
**Returns:** `boolean`
(or-create-script-info-and-attach-to-project inferred-project)Returns: any
**Returns:** `any`
(project-errors inferred-project)Returns: Diagnostic[] | undefined
**Returns:** `Diagnostic[] | undefined`
(project-kind inferred-project)Returns: ProjectKind
**Returns:** `ProjectKind`
(project-name inferred-project)Returns: string
**Returns:** `string`
(project-references inferred-project)Returns: readonly ProjectReference[] | undefined
**Returns:** `readonly ProjectReference[] | undefined`
(project-root-path inferred-project)this is canonical project root path
Returns: string | undefined
this is canonical project root path **Returns:** `string | undefined`
(project-service inferred-project)Returns: ProjectService
**Returns:** `ProjectService`
(project-version inferred-project)Returns: string
**Returns:** `string`
(project-with-single-root? inferred-project)Returns: boolean
**Returns:** `boolean`
(read-directory inferred-project path)(read-directory inferred-project path extensions)(read-directory inferred-project path extensions exclude)(read-directory inferred-project path extensions exclude include)(read-directory inferred-project path extensions exclude include depth)Parameters:
path: stringextensions: readonly string[] | undefinedexclude: readonly string[] | undefinedinclude: readonly string[] | undefineddepth: number | undefinedReturns: string[]
**Parameters:** - `path`: `string` - `extensions`: `readonly string[] | undefined` - `exclude`: `readonly string[] | undefined` - `include`: `readonly string[] | undefined` - `depth`: `number | undefined` **Returns:** `string[]`
(read-file inferred-project file-name)Parameters:
file-name: stringReturns: string | undefined
**Parameters:** - `file-name`: `string` **Returns:** `string | undefined`
(realpath inferred-project)Returns: ((path: string) => string) | undefined
**Returns:** `((path: string) => string) | undefined`
(refresh-diagnostics inferred-project)Starts a new check for diagnostics. Call this if some file has updated that would cause diagnostics to be changed.
Returns: void
Starts a new check for diagnostics. Call this if some file has updated that would cause diagnostics to be changed. **Returns:** `void`
(register-file-update inferred-project file-name)Parameters:
file-name: stringReturns: void
**Parameters:** - `file-name`: `string` **Returns:** `void`
(remove-existing-typings inferred-project include)Parameters:
include: string[]Returns: string[]
**Parameters:** - `include`: `string[]` **Returns:** `string[]`
(remove-file inferred-project info file-exists? detach-from-project?)Parameters:
info: ScriptInfofile-exists?: booleandetach-from-project?: booleanReturns: void
**Parameters:** - `info`: `ScriptInfo` - `file-exists?`: `boolean` - `detach-from-project?`: `boolean` **Returns:** `void`
(remove-local-typings-from-type-acquisition inferred-project
new-type-acquisition)Parameters:
new-type-acquisition: TypeAcquisitionReturns: TypeAcquisition
**Parameters:** - `new-type-acquisition`: `TypeAcquisition` **Returns:** `TypeAcquisition`
(remove-root inferred-project info)Parameters:
info: ScriptInfoReturns: void
**Parameters:** - `info`: `ScriptInfo` **Returns:** `void`
(root-files-map inferred-project)Returns: any
**Returns:** `any`
(root-script-infos inferred-project)Returns: ScriptInfo[]
**Returns:** `ScriptInfo[]`
(root? inferred-project info)Parameters:
info: ScriptInfoReturns: boolean
**Parameters:** - `info`: `ScriptInfo` **Returns:** `boolean`
(script-file-names inferred-project)Returns: string[]
**Returns:** `string[]`
(script-info inferred-project unchecked-file-name)Parameters:
unchecked-file-name: stringReturns: ScriptInfo | undefined
**Parameters:** - `unchecked-file-name`: `string` **Returns:** `ScriptInfo | undefined`
(script-info-for-normalized-path inferred-project file-name)Parameters:
file-name: NormalizedPathReturns: ScriptInfo | undefined
**Parameters:** - `file-name`: `NormalizedPath` **Returns:** `ScriptInfo | undefined`
(script-infos inferred-project)Returns: ScriptInfo[]
**Returns:** `ScriptInfo[]`
(script-kind inferred-project file-name)Parameters:
file-name: stringReturns: ScriptKind
**Parameters:** - `file-name`: `string` **Returns:** `ScriptKind`
(script-snapshot inferred-project filename)Parameters:
filename: stringReturns: IScriptSnapshot | undefined
**Parameters:** - `filename`: `string` **Returns:** `IScriptSnapshot | undefined`
(script-version inferred-project filename)Parameters:
filename: stringReturns: string
**Parameters:** - `filename`: `string` **Returns:** `string`
(set-compiler-options inferred-project)(set-compiler-options inferred-project options)Parameters:
options: CompilerOptions | undefinedReturns: void
**Parameters:** - `options`: `CompilerOptions | undefined` **Returns:** `void`
(set-create-generated-file-watcher! inferred-project value)(set-detach-script-info-from-project! inferred-project value)(set-detach-script-info-if-not-root! inferred-project value)(set-get-or-create-script-info-and-attach-to-project! inferred-project value)(set-internal-compiler-options-for-emitting-js-files inferred-project)Returns: any
**Returns:** `any`
(set-is-valid-generated-file-watcher! inferred-project value)(set-last-reported-file-names! inferred-project value)Set of files that was returned from the last call to getChangesSinceVersion.
Set of files that was returned from the last call to getChangesSinceVersion.
(set-last-reported-version! inferred-project value)Last version that was reported.
Last version that was reported.
(set-project-errors inferred-project)(set-project-errors inferred-project project-errors)Parameters:
project-errors: Diagnostic[] | undefinedReturns: void
**Parameters:** - `project-errors`: `Diagnostic[] | undefined` **Returns:** `void`
(set-set-internal-compiler-options-for-emitting-js-files! inferred-project
value)(set-type-acquisition inferred-project)(set-type-acquisition inferred-project new-type-acquisition)Parameters:
new-type-acquisition: TypeAcquisition | undefinedReturns: void
**Parameters:** - `new-type-acquisition`: `TypeAcquisition | undefined` **Returns:** `void`
(set-updated-file-names! inferred-project value)Set of files names that were updated since the last call to getChangesSinceVersion.
Set of files names that were updated since the last call to getChangesSinceVersion.
(source-file inferred-project path)Parameters:
path: PathReturns: SourceFile | undefined
**Parameters:** - `path`: `Path` **Returns:** `SourceFile | undefined`
(toggle-js-inferred-project inferred-project js-inferred-project?)Parameters:
js-inferred-project?: booleanReturns: void
**Parameters:** - `js-inferred-project?`: `boolean` **Returns:** `void`
(trace inferred-project)Returns: ((s: string) => void) | undefined
**Returns:** `((s: string) => void) | undefined`
(type-acquisition inferred-project)Returns: TypeAcquisition
**Returns:** `TypeAcquisition`
(update-graph-worker inferred-project)Returns: any
**Returns:** `any`
(update-graph? inferred-project)Updates set of files that contribute to this project
Returns: boolean - : true if set of files in the project stays the same and false - otherwise.
Updates set of files that contribute to this project **Returns:** `boolean` - : true if set of files in the project stays the same and false - otherwise.
(updated-file-names inferred-project)Set of files names that were updated since the last call to getChangesSinceVersion.
Returns: any
Set of files names that were updated since the last call to getChangesSinceVersion. **Returns:** `any`
(use-case-sensitive-file-names? inferred-project)Returns: boolean
**Returns:** `boolean`
(valid-generated-file-watcher inferred-project)Returns: any
**Returns:** `any`
(watch-options inferred-project)Returns: WatchOptions | undefined
**Returns:** `WatchOptions | undefined`
(watched-missing-file inferred-project)Returns: any
**Returns:** `any`
(write-file inferred-project file-name content)Parameters:
file-name: stringcontent: stringReturns: void
**Parameters:** - `file-name`: `string` - `content`: `string` **Returns:** `void`
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 |