Skip to content

Commit

Permalink
feat(experimental-utils): add isSpaceBetween declaration to Sou… (#1268)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-tarasyuk authored and bradzacher committed Nov 26, 2019
1 parent 57ddba3 commit f83f04b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/experimental-utils/src/ts-eslint/SourceCode.ts
Expand Up @@ -32,6 +32,14 @@ declare interface SourceCode {

getNodeByRangeIndex(index: number): TSESTree.Node | null;

isSpaceBetween(
first: TSESTree.Token | TSESTree.Node,
second: TSESTree.Token | TSESTree.Node,
): boolean;

/**
* @deprecated in favor of isSpaceBetween()
*/
isSpaceBetweenTokens(first: TSESTree.Token, second: TSESTree.Token): boolean;

getLocFromIndex(index: number): TSESTree.LineAndColumnData;
Expand Down

0 comments on commit f83f04b

Please sign in to comment.