Skip to main content

Module: typings/Types

Namespaces

Interfaces

Type aliases

NodeFinder

Ƭ NodeFinder: (node: SyntaxNode, selection?: Selection) => SyntaxNode | null

Type declaration

▸ (node, selection?): SyntaxNode | null

Returns the desired relative of the provided node. Returns null if matching node not found.

Parameters
NameType
nodeSyntaxNode
selection?Selection
Returns

SyntaxNode | null

Defined in

typings/Types.ts:191


NodeMatcher

Ƭ NodeMatcher: (selection: SelectionWithEditor, node: SyntaxNode) => NodeMatcherValue[] | null

Type declaration

▸ (selection, node): NodeMatcherValue[] | null

Parameters
NameType
selectionSelectionWithEditor
nodeSyntaxNode
Returns

NodeMatcherValue[] | null

Defined in

typings/Types.ts:182


NodeMatcherAlternative

Ƭ NodeMatcherAlternative: NodeMatcher | string[] | string

Defined in

typings/Types.ts:180


NodeMatcherValue

Ƭ NodeMatcherValue: Object

Type declaration

NameType
nodeSyntaxNode
selectionSelectionWithContext

Defined in

typings/Types.ts:175


SelectionExtractor

Ƭ SelectionExtractor: (editor: TextEditor, nodes: SyntaxNode) => SelectionWithContext

Type declaration

▸ (editor, nodes): SelectionWithContext

Returns one or more selections for a given SyntaxNode

Parameters
NameType
editorTextEditor
nodesSyntaxNode
Returns

SelectionWithContext

Defined in

typings/Types.ts:197


SelectionWithEditorWithContext

Ƭ SelectionWithEditorWithContext: Object

Type declaration

NameType
contextSelectionContext
selectionSelectionWithEditor

Defined in

typings/Types.ts:87


TextFormatterName

Ƭ TextFormatterName: "camelCase" | "pascalCase" | "snakeCase" | "upperSnakeCase"

Defined in

typings/Types.ts:228