Liking cljdoc? Tell your friends :D

dots.typescript.server.script-info


attach-to-project?cljs

(attach-to-project? script-info project)

Parameters:

  • project: Project

Returns: boolean

**Parameters:**
- `project`: `Project`

**Returns:** `boolean`
sourceraw docstring

attached?cljs

(attached? script-info project)

Parameters:

  • project: Project

Returns: boolean

**Parameters:**
- `project`: `Project`

**Returns:** `boolean`
sourceraw docstring

closecljs

(close script-info)
(close script-info file-exists?)

Parameters:

  • file-exists?: boolean | undefined

Returns: void

**Parameters:**
- `file-exists?`: `boolean | undefined`

**Returns:** `void`
sourceraw docstring

containing-projectscljs

(containing-projects script-info)

All projects that include this file

Returns: Project[]

All projects that include this file

**Returns:** `Project[]`
sourceraw docstring

default-projectcljs

(default-project script-info)

Returns: Project

**Returns:** `Project`
sourceraw docstring

detach-all-projectscljs

(detach-all-projects script-info)

Returns: void

**Returns:** `void`
sourceraw docstring

detach-from-projectcljs

(detach-from-project script-info project)

Parameters:

  • project: Project

Returns: void

**Parameters:**
- `project`: `Project`

**Returns:** `void`
sourceraw docstring

edit-contentcljs

(edit-content script-info start end new-text)

Parameters:

  • start: number
  • end: number
  • new-text: string

Returns: void

**Parameters:**
- `start`: `number`
- `end`: `number`
- `new-text`: `string`

**Returns:** `void`
sourceraw docstring

ensure-real-pathcljs

(ensure-real-path script-info)

Returns: any

**Returns:** `any`
sourceraw docstring

file-namecljs

(file-name script-info)

Returns: NormalizedPath

**Returns:** `NormalizedPath`
sourceraw docstring

format-code-settingscljs

(format-code-settings script-info)

Returns: FormatCodeSettings | undefined

**Returns:** `FormatCodeSettings | undefined`
sourceraw docstring

format-settingscljs

(format-settings script-info)

Returns: any

**Returns:** `any`
sourceraw docstring

get-preferencescljs

(get-preferences script-info)

Returns: UserPreferences | undefined

**Returns:** `UserPreferences | undefined`
sourceraw docstring

has-mixed-content?cljs

(has-mixed-content? script-info)

Returns: boolean

**Returns:** `boolean`
sourceraw docstring

hostcljs

(host script-info)

Returns: any

**Returns:** `any`
sourceraw docstring

java-script?cljs

(java-script? script-info)

Returns: boolean

**Returns:** `boolean`
sourceraw docstring

latest-versioncljs

(latest-version script-info)

Returns: string

**Returns:** `string`
sourceraw docstring

line-offset-to-positioncljs

(line-offset-to-position script-info line offset)

Parameters:

  • line: number - 1 based index
  • offset: number - 1 based index

Returns: number

**Parameters:**
- `line`: `number` - 1 based index
- `offset`: `number` - 1 based index

**Returns:** `number`
sourceraw docstring

line-to-text-spancljs

(line-to-text-span script-info line)

Parameters:

  • line: number - 1 based index

Returns: TextSpan

**Parameters:**
- `line`: `number` - 1 based index

**Returns:** `TextSpan`
sourceraw docstring

mark-containing-projects-as-dirtycljs

(mark-containing-projects-as-dirty script-info)

Returns: void

**Returns:** `void`
sourceraw docstring

opencljs

(open script-info)
(open script-info new-text)

Parameters:

  • new-text: string | undefined

Returns: void

**Parameters:**
- `new-text`: `string | undefined`

**Returns:** `void`
sourceraw docstring

orphan?cljs

(orphan? script-info)

Returns: boolean

**Returns:** `boolean`
sourceraw docstring

pathcljs

(path script-info)

Returns: Path

**Returns:** `Path`
sourceraw docstring

position-to-line-offsetcljs

(position-to-line-offset script-info position)

Parameters:

  • position: number

Returns: Location

**Parameters:**
- `position`: `number`

**Returns:** `Location`
sourceraw docstring

preferencescljs

(preferences script-info)

Returns: any

**Returns:** `any`
sourceraw docstring

register-file-updatecljs

(register-file-update script-info)

Returns: void

**Returns:** `void`
sourceraw docstring

reload-from-file?cljs

(reload-from-file? script-info)
(reload-from-file? script-info temp-file-name)

Parameters:

  • temp-file-name: NormalizedPath | undefined

Returns: boolean

**Parameters:**
- `temp-file-name`: `NormalizedPath | undefined`

**Returns:** `boolean`
sourceraw docstring

save-tocljs

(save-to script-info file-name)

Parameters:

  • file-name: string

Returns: void

**Parameters:**
- `file-name`: `string`

**Returns:** `void`
sourceraw docstring

script-kindcljs

(script-kind script-info)

Returns: ScriptKind

**Returns:** `ScriptKind`
sourceraw docstring

script-open?cljs

(script-open? script-info)

Returns: boolean

**Returns:** `boolean`
sourceraw docstring

set-ensure-real-path!cljs

(set-ensure-real-path! script-info value)
source

set-format-settings!cljs

(set-format-settings! script-info value)
source

set-optionscljs

(set-options script-info format-settings)
(set-options script-info format-settings preferences)

Parameters:

  • format-settings: FormatCodeSettings
  • preferences: UserPreferences | undefined

Returns: void

**Parameters:**
- `format-settings`: `FormatCodeSettings`
- `preferences`: `UserPreferences | undefined`

**Returns:** `void`
sourceraw docstring

set-preferences!cljs

(set-preferences! script-info value)
source

snapshotcljs

(snapshot script-info)

Returns: IScriptSnapshot

**Returns:** `IScriptSnapshot`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close