@corsa-bind/napi

86 documented exports.

ApiMode

No documentation comment yet.

ts
export type ApiMode = "jsonrpc" | "msgpack";

Source

ApiClientOptions

No documentation comment yet.

ts
export interface ApiClientOptions

Source

InitializeResponse

No documentation comment yet.

ts
export interface InitializeResponse

Source

ConfigResponse

No documentation comment yet.

ts
export interface ConfigResponse

Source

ContentMapperDefinition

A content mapper as declared in a tsconfig.json contentMappers entry.

ts
export interface ContentMapperDefinition

Source

SpanMapKind

0 verbatim, 1 atom, 2 alias.

ts
export type SpanMapKind = 0 | 1 | 2;

Source

SpanMapFidelity

0 exact, 1 atom, 2 approximate, 3 none.

ts
export type SpanMapFidelity = 0 | 1 | 2 | 3;

Source

DiagnosticDirectivePolicy

0 ignore, 1 expect.

ts
export type DiagnosticDirectivePolicy = 0 | 1;

Source

TextRange

Half-open range of UTF-16 code unit offsets.

ts
export interface TextRange

Source

SpanMapSegment

One half-open virtual range mapped onto one half-open original range.

ts
export interface SpanMapSegment

Source

MappedPosition

One projection of a position, with how faithful it is.

ts
export interface MappedPosition

Source

MappedRange

One projection of a range, with how faithful it is.

ts
export interface MappedRange

Source

MappedDiagnosticDirective

A directive controlling TypeScript diagnostics inside a mapped range.

ts
export interface MappedDiagnosticDirective

Source

ContentMapping

Content mapper state attached to one source file.

ts
export interface ContentMapping

Source

EncodedSourceFile

Source-file fields decoded from a getSourceFile payload.

ts
export interface EncodedSourceFile

Source

ProjectResponse

No documentation comment yet.

ts
export interface ProjectResponse

Source

DocumentIdentifier

No documentation comment yet.

ts
export type DocumentIdentifier = string |

Source

FileChangeSummary

No documentation comment yet.

ts
export interface FileChangeSummary

Source

FileChanges

No documentation comment yet.

ts
export type FileChanges =
  | FileChangeSummary
  |

Source

UpdateSnapshotParams

No documentation comment yet.

ts
export interface UpdateSnapshotParams

Source

UpdateSnapshotResponse

No documentation comment yet.

ts
export interface UpdateSnapshotResponse

Source

TypeResponse

No documentation comment yet.

ts
export interface TypeResponse

Source

SymbolResponse

No documentation comment yet.

ts
export interface SymbolResponse

Source

CheckerBatchRequest

No documentation comment yet.

ts
export interface CheckerBatchRequest<Params = unknown>

Source

CheckerBatchResponse

No documentation comment yet.

ts
export interface CheckerBatchResponse<Result = unknown>

Source

OverlayUpdate

No documentation comment yet.

ts
export interface OverlayUpdate

Source

OverlayChanges

No documentation comment yet.

ts
export interface OverlayChanges

Source

RuntimeCapabilities

No documentation comment yet.

ts
export interface RuntimeCapabilities

Source

OverlayCapabilities

No documentation comment yet.

ts
export interface OverlayCapabilities

Source

DiagnosticsCapabilities

No documentation comment yet.

ts
export interface DiagnosticsCapabilities

Source

EditorCapabilities

No documentation comment yet.

ts
export interface EditorCapabilities

Source

LspCapabilities

No documentation comment yet.

ts
export interface LspCapabilities

Source

CapabilitiesResponse

No documentation comment yet.

ts
export interface CapabilitiesResponse

Source

FileDiagnosticsResponse

No documentation comment yet.

ts
export interface FileDiagnosticsResponse

Source

ProjectDiagnosticsResponse

No documentation comment yet.

ts
export interface ProjectDiagnosticsResponse

Source

SnapshotDiagnosticsResponse

No documentation comment yet.

ts
export interface SnapshotDiagnosticsResponse

Source

UnsafeTypeFlowInput

No documentation comment yet.

ts
export interface UnsafeTypeFlowInput

Source

NativeLintRange

No documentation comment yet.

ts
export interface NativeLintRange

Source

NativeLintNode

No documentation comment yet.

ts
export interface NativeLintNode

Source

NativeLintFix

No documentation comment yet.

ts
export interface NativeLintFix

Source

NativeLintSuggestion

No documentation comment yet.

ts
export interface NativeLintSuggestion

Source

NativeLintDiagnostic

No documentation comment yet.

ts
export interface NativeLintDiagnostic

Source

NativeNodeMetadataDepth

No documentation comment yet.

ts
export interface NativeNodeMetadataDepth

Source

NativeRuleBridgeRequirements

No documentation comment yet.

ts
export interface NativeRuleBridgeRequirements

Source

NativeLintRuleMeta

No documentation comment yet.

ts
export interface NativeLintRuleMeta

Source

TypeTextKind

No documentation comment yet.

ts
export type TypeTextKind =
  | "any"
  | "bigint"
  | "boolean"
  | "nullish"
  | "number"
  | "regexp"
  | "string"
  | "unknown"
  | "other";

Source

VirtualChange

No documentation comment yet.

ts
export interface VirtualChange

Source

VirtualDocumentState

No documentation comment yet.

ts
export interface VirtualDocumentState

Source

CorsaApiClient

No documentation comment yet.

ts
const CorsaApiClient: CorsaApiClientConstructor

Source

CorsaVirtualDocument

No documentation comment yet.

ts
const CorsaVirtualDocument: CorsaVirtualDocumentConstructor

Source

CorsaSpanMap

Bidirectional mapping between a mapper's virtual text and the original file.

Every query takes an optional feature bitmask (see SpanMap); when it is omitted, all features are considered.

ts
const CorsaSpanMap: CorsaSpanMapConstructor

Source

decodeSourceFile

Decodes the source-file fields of a getSourceFile payload.

ts
const decodeSourceFile: (payload: Uint8Array<ArrayBufferLike>) => EncodedSourceFile

Source

isContentMappedSourceFile

Reports whether a getSourceFile payload came out of a content mapper.

ts
const isContentMappedSourceFile: (payload: Uint8Array<ArrayBufferLike>) => boolean

Source

spanMapForSourceFile

Builds the span map of a payload, or null when the file is not mapped.

ts
const spanMapForSourceFile: (payload: Uint8Array<ArrayBufferLike>) => CorsaSpanMap | null

Source

contentMappersFromConfig

Reads the content mappers a parsed tsconfig declares.

ts
const contentMappersFromConfig: (config: unknown) => ContentMapperDefinition[]

Source

SpanMap

Numeric enums mirrored from upstream spanMapKind, spanMapFidelity, and spanMapFeature.

ts
const SpanMap: Readonly<{ readonly Kind: Readonly<{ Verbatim: 0; Atom: 1; Alias: 2; }>; readonly Fidelity: Readonly<{ Exact: 0; Atom: 1; Approximate: 2; None: 3; }>; readonly Feature: Readonly<{ Hover: number; SignatureHelp: number; ... 19 more ...; All: number; }>; }>

Source

version

No documentation comment yet.

ts
const version: () => string

Source

spawnCorsaApiClientAsync

No documentation comment yet.

ts
const spawnCorsaApiClientAsync: (options: ApiClientOptions) => Promise<CorsaApiClient>

Source

isUnsafeAssignment

No documentation comment yet.

ts
const isUnsafeAssignment: (input: UnsafeTypeFlowInput) => boolean

Source

isUnsafeReturn

No documentation comment yet.

ts
const isUnsafeReturn: (input: UnsafeTypeFlowInput) => boolean

Source

runNativeLintRule

No documentation comment yet.

ts
const runNativeLintRule: (ruleName: string, node: NativeLintNode) => NativeLintDiagnostic[]

Source

nativeLintRuleMetas

No documentation comment yet.

ts
const nativeLintRuleMetas: () => NativeLintRuleMeta[]

Source

classifyTypeText

No documentation comment yet.

ts
const classifyTypeText: (text?: string | undefined) => TypeTextKind

Source

splitTopLevelTypeText

No documentation comment yet.

ts
const splitTopLevelTypeText: (text: string, delimiter: string) => string[]

Source

splitTypeText

No documentation comment yet.

ts
const splitTypeText: (text: string) => string[]

Source

isStringLikeTypeTexts

No documentation comment yet.

ts
const isStringLikeTypeTexts: (typeTexts: readonly string[]) => boolean

Source

isNumberLikeTypeTexts

No documentation comment yet.

ts
const isNumberLikeTypeTexts: (typeTexts: readonly string[]) => boolean

Source

isBigIntLikeTypeTexts

No documentation comment yet.

ts
const isBigIntLikeTypeTexts: (typeTexts: readonly string[]) => boolean

Source

isAnyLikeTypeTexts

No documentation comment yet.

ts
const isAnyLikeTypeTexts: (typeTexts: readonly string[]) => boolean

Source

isUnknownLikeTypeTexts

No documentation comment yet.

ts
const isUnknownLikeTypeTexts: (typeTexts: readonly string[]) => boolean

Source

isArrayLikeTypeTexts

No documentation comment yet.

ts
const isArrayLikeTypeTexts: (typeTexts: readonly string[]) => boolean

Source

isStringArrayLikeTypeTexts

No documentation comment yet.

ts
const isStringArrayLikeTypeTexts: (typeTexts: readonly string[]) => boolean

Source

isPromiseLikeTypeTexts

No documentation comment yet.

ts
const isPromiseLikeTypeTexts: (typeTexts: readonly string[], propertyNames?: readonly string[] | undefined) => boolean

Source

isErrorLikeTypeTexts

No documentation comment yet.

ts
const isErrorLikeTypeTexts: (typeTexts: readonly string[], propertyNames?: readonly string[] | undefined) => boolean

Source

resolveCheckerBatch

No documentation comment yet.

ts
resolveCheckerBatch(client: CheckerBatchCapableClient, scope: CheckerBatchScope, queries: readonly CheckerBatchQuery[]): ResolvedCheckerBatchItem[]

Source

Parameter Type Description
client CheckerBatchCapableClient -
scope CheckerBatchScope -
queries readonly CheckerBatchQuery[] -

Returns: ResolvedCheckerBatchItem[]

resolveCheckerBatchAsync

No documentation comment yet.

ts
resolveCheckerBatchAsync(client: AsyncCheckerBatchCapableClient, scope: CheckerBatchScope, queries: readonly CheckerBatchQuery[]): Promise<ResolvedCheckerBatchItem[]>

Source

Parameter Type Description
client AsyncCheckerBatchCapableClient -
scope CheckerBatchScope -
queries readonly CheckerBatchQuery[] -

Returns: Promise<ResolvedCheckerBatchItem[]>

Utils

No documentation comment yet.

ts
const Utils: Readonly<{ classifyTypeText: (text?: string | undefined) => TypeTextKind; splitTopLevelTypeText: (text: string, delimiter: string) => string[]; splitTypeText: (text: string) => string[]; ... 8 more ...; isErrorLikeTypeTexts: (typeTexts: readonly string[], propertyNames?: readonly string[] | undefined) => boolean; }>

Source

default

No documentation comment yet.

ts
const binding: typeof import("/home/runner/_work/corsa-bind/corsa-bind/src/bindings/nodejs/corsa_node/index")

Source

batchCheckerRequests

Sends multiple raw checker endpoint calls through upstream batchRequests.

This keeps the original typed primitives available while giving hot paths a single transport round trip for relation-heavy workflows.

ts
batchCheckerRequests(client: CheckerBatchCapableClient, requests: readonly CheckerBatchRequest[]): CheckerBatchResponse[]

Source

Parameter Type Description
client CheckerBatchCapableClient -
requests readonly CheckerBatchRequest<unknown>[] -

Returns: CheckerBatchResponse<unknown>[]

batchCheckerRequestsAsync

Async counterpart of batchCheckerRequests.

ts
batchCheckerRequestsAsync(client: AsyncCheckerBatchCapableClient, requests: readonly CheckerBatchRequest[]): Promise<CheckerBatchResponse[]>

Source

Parameter Type Description
client AsyncCheckerBatchCapableClient -
requests readonly CheckerBatchRequest<unknown>[] -

Returns: Promise<CheckerBatchResponse<unknown>[]>

AsyncCheckerBatchCapableClient

No documentation comment yet.

ts
export interface AsyncCheckerBatchCapableClient

Source

CheckerBatchCapableClient

No documentation comment yet.

ts
export interface CheckerBatchCapableClient

Source

CheckerBatchQuery

No documentation comment yet.

ts
export type CheckerBatchQuery =
  |

Source

CheckerBatchResult

No documentation comment yet.

ts
export type CheckerBatchResult =
  | TypeResponse
  | Array<TypeResponse | null>
  | SymbolResponse
  | Array<SymbolResponse | null>
  | boolean
  | string
  | null;

Source

CheckerBatchScope

No documentation comment yet.

ts
export interface CheckerBatchScope

Source

ResolvedCheckerBatchItem

No documentation comment yet.

ts
export type ResolvedCheckerBatchItem =
  |

Source