(amd-dependencies ts-config-source-file)Returns: readonly AmdDependency[]
**Returns:** `readonly AmdDependency[]`
(child-at ts-config-source-file index)(child-at ts-config-source-file index source-file)Parameters:
index: numbersource-file: SourceFile | undefinedReturns: Node
**Parameters:** - `index`: `number` - `source-file`: `SourceFile | undefined` **Returns:** `Node`
(child-count ts-config-source-file)(child-count ts-config-source-file source-file)Parameters:
source-file: SourceFile | undefinedReturns: number
**Parameters:** - `source-file`: `SourceFile | undefined` **Returns:** `number`
(children ts-config-source-file)(children ts-config-source-file source-file)Parameters:
source-file: SourceFile | undefinedReturns: Node[]
**Parameters:** - `source-file`: `SourceFile | undefined` **Returns:** `Node[]`
(declaration-file? ts-config-source-file)Returns: boolean
**Returns:** `boolean`
(end-of-file-token ts-config-source-file)Returns: Token<SyntaxKind.EndOfFileToken>
**Returns:** `Token<SyntaxKind.EndOfFileToken>`
(extended-source-files ts-config-source-file)Returns: string[] | undefined
**Returns:** `string[] | undefined`
(file-name ts-config-source-file)Returns: string
**Returns:** `string`
(first-token ts-config-source-file)(first-token ts-config-source-file source-file)Parameters:
source-file: SourceFile | undefinedReturns: Node | undefined
**Parameters:** - `source-file`: `SourceFile | undefined` **Returns:** `Node | undefined`
(flags ts-config-source-file)Returns: NodeFlags
**Returns:** `NodeFlags`
(for-each-child ts-config-source-file cb-node)(for-each-child ts-config-source-file cb-node cb-node-array)Parameters:
cb-node: (node: Node) => T | undefinedcb-node-array: ((nodes: NodeArray<Node>) => T | undefined) | undefinedReturns: T | undefined
**Parameters:** - `cb-node`: `(node: Node) => T | undefined` - `cb-node-array`: `((nodes: NodeArray<Node>) => T | undefined) | undefined` **Returns:** `T | undefined`
(full-start ts-config-source-file)Returns: number
**Returns:** `number`
(full-text ts-config-source-file)(full-text ts-config-source-file source-file)Parameters:
source-file: SourceFile | undefinedReturns: string
**Parameters:** - `source-file`: `SourceFile | undefined` **Returns:** `string`
(full-width ts-config-source-file)Returns: number
**Returns:** `number`
(get-text ts-config-source-file)(get-text ts-config-source-file source-file)Parameters:
source-file: SourceFile | undefinedReturns: string
**Parameters:** - `source-file`: `SourceFile | undefined` **Returns:** `string`
(has-no-default-lib? ts-config-source-file)lib.d.ts should have a reference comment like
/// <reference no-default-lib="true"/>
If any other file has this comment, it signals not to include lib.d.ts because this containing file is intended to act as a default library.
Returns: boolean
lib.d.ts should have a reference comment like /// <reference no-default-lib="true"/> If any other file has this comment, it signals not to include lib.d.ts because this containing file is intended to act as a default library. **Returns:** `boolean`
(implied-node-format ts-config-source-file)When module is Node16 or NodeNext, this field controls whether the
source file in question is an ESNext-output-format file, or a CommonJS-output-format
module. This is derived by the module resolver as it looks up the file, since
it is derived from either the file extension of the module, or the containing
package.json context, and affects both checking and emit.
It is public so that (pre)transformers can set this field,
since it switches the builtin node module transform. Generally speaking, if unset,
the field is treated as though it is ModuleKind.CommonJS.
Note that this field is only set by the module resolution process when
moduleResolution is Node16 or NodeNext, which is implied by the module setting
of Node16 or NodeNext, respectively, but may be overriden (eg, by a moduleResolution
of node). If so, this field will be unset and source files will be considered to be
CommonJS-output-format by the node module transformer and type checker, regardless of extension or context.
Returns: ResolutionMode
When `module` is `Node16` or `NodeNext`, this field controls whether the source file in question is an ESNext-output-format file, or a CommonJS-output-format module. This is derived by the module resolver as it looks up the file, since it is derived from either the file extension of the module, or the containing `package.json` context, and affects both checking and emit. It is _public_ so that (pre)transformers can set this field, since it switches the builtin `node` module transform. Generally speaking, if unset, the field is treated as though it is `ModuleKind.CommonJS`. Note that this field is only set by the module resolution process when `moduleResolution` is `Node16` or `NodeNext`, which is implied by the `module` setting of `Node16` or `NodeNext`, respectively, but may be overriden (eg, by a `moduleResolution` of `node`). If so, this field will be unset and source files will be considered to be CommonJS-output-format by the node module transformer and type checker, regardless of extension or context. **Returns:** `ResolutionMode`
(kind ts-config-source-file)Returns: SyntaxKind.SourceFile
**Returns:** `SyntaxKind.SourceFile`
(language-variant ts-config-source-file)Returns: LanguageVariant
**Returns:** `LanguageVariant`
(language-version ts-config-source-file)Returns: ScriptTarget
**Returns:** `ScriptTarget`
(last-token ts-config-source-file)(last-token ts-config-source-file source-file)Parameters:
source-file: SourceFile | undefinedReturns: Node | undefined
**Parameters:** - `source-file`: `SourceFile | undefined` **Returns:** `Node | undefined`
(leading-trivia-width ts-config-source-file)(leading-trivia-width ts-config-source-file source-file)Parameters:
source-file: SourceFile | undefinedReturns: number
**Parameters:** - `source-file`: `SourceFile | undefined` **Returns:** `number`
(lib-reference-directives ts-config-source-file)Returns: readonly FileReference[]
**Returns:** `readonly FileReference[]`
(line-and-character-of-position ts-config-source-file pos)Parameters:
pos: numberReturns: LineAndCharacter
**Parameters:** - `pos`: `number` **Returns:** `LineAndCharacter`
(line-end-of-position ts-config-source-file pos)Parameters:
pos: numberReturns: number
**Parameters:** - `pos`: `number` **Returns:** `number`
(line-starts ts-config-source-file)Returns: readonly number[]
**Returns:** `readonly number[]`
(module-name ts-config-source-file)Returns: string | undefined
**Returns:** `string | undefined`
(position-of-line-and-character ts-config-source-file line character)Parameters:
line: numbercharacter: numberReturns: number
**Parameters:** - `line`: `number` - `character`: `number` **Returns:** `number`
(referenced-files ts-config-source-file)Returns: readonly FileReference[]
**Returns:** `readonly FileReference[]`
(set-has-no-default-lib! ts-config-source-file value)lib.d.ts should have a reference comment like
/// <reference no-default-lib="true"/>
If any other file has this comment, it signals not to include lib.d.ts because this containing file is intended to act as a default library.
lib.d.ts should have a reference comment like /// <reference no-default-lib="true"/> If any other file has this comment, it signals not to include lib.d.ts because this containing file is intended to act as a default library.
(set-implied-node-format! ts-config-source-file value)When module is Node16 or NodeNext, this field controls whether the
source file in question is an ESNext-output-format file, or a CommonJS-output-format
module. This is derived by the module resolver as it looks up the file, since
it is derived from either the file extension of the module, or the containing
package.json context, and affects both checking and emit.
It is public so that (pre)transformers can set this field,
since it switches the builtin node module transform. Generally speaking, if unset,
the field is treated as though it is ModuleKind.CommonJS.
Note that this field is only set by the module resolution process when
moduleResolution is Node16 or NodeNext, which is implied by the module setting
of Node16 or NodeNext, respectively, but may be overriden (eg, by a moduleResolution
of node). If so, this field will be unset and source files will be considered to be
CommonJS-output-format by the node module transformer and type checker, regardless of extension or context.
When `module` is `Node16` or `NodeNext`, this field controls whether the source file in question is an ESNext-output-format file, or a CommonJS-output-format module. This is derived by the module resolver as it looks up the file, since it is derived from either the file extension of the module, or the containing `package.json` context, and affects both checking and emit. It is _public_ so that (pre)transformers can set this field, since it switches the builtin `node` module transform. Generally speaking, if unset, the field is treated as though it is `ModuleKind.CommonJS`. Note that this field is only set by the module resolution process when `moduleResolution` is `Node16` or `NodeNext`, which is implied by the `module` setting of `Node16` or `NodeNext`, respectively, but may be overriden (eg, by a `moduleResolution` of `node`). If so, this field will be unset and source files will be considered to be CommonJS-output-format by the node module transformer and type checker, regardless of extension or context.
(set-type-reference-directives! ts-config-source-file value)(source-file ts-config-source-file)Returns: SourceFile
**Returns:** `SourceFile`
(start ts-config-source-file)(start ts-config-source-file source-file)(start ts-config-source-file source-file include-js-doc-comment?)Parameters:
source-file: SourceFile | undefinedinclude-js-doc-comment?: boolean | undefinedReturns: number
**Parameters:** - `source-file`: `SourceFile | undefined` - `include-js-doc-comment?`: `boolean | undefined` **Returns:** `number`
(statements ts-config-source-file)Returns: NodeArray<JsonObjectExpressionStatement>
**Returns:** `NodeArray<JsonObjectExpressionStatement>`
(type-reference-directives ts-config-source-file)Returns: readonly FileReference[]
**Returns:** `readonly FileReference[]`
(update ts-config-source-file new-text text-change-range)Parameters:
new-text: stringtext-change-range: TextChangeRangeReturns: SourceFile
**Parameters:** - `new-text`: `string` - `text-change-range`: `TextChangeRange` **Returns:** `SourceFile`
(width ts-config-source-file)(width ts-config-source-file source-file)Parameters:
source-file: SourceFileLike | undefinedReturns: number
**Parameters:** - `source-file`: `SourceFileLike | undefined` **Returns:** `number`
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 |