@@ -2,7 +2,7 @@ import type tslib from 'typescript/lib/tsserverlibrary'
22import { PostfixCompletion } from '../ipcTypes'
33import { findChildContainingPosition , findClosestParent } from '../utils'
44
5- export default ( position : number , fileName : string , scriptSnapshot : tslib . IScriptSnapshot , languageService : tslib . LanguageService ) : PostfixCompletion [ ] => {
5+ export default ( position : number , fileName : string , scriptSnapshot : ts . IScriptSnapshot , languageService : ts . LanguageService ) : PostfixCompletion [ ] => {
66 const { character } = languageService . toLineColumnOffset ! ( fileName , position )
77 const startLinePos = position - character
88 const textBeforePositionLine = scriptSnapshot ?. getText ( startLinePos , position + 1 )
@@ -15,7 +15,7 @@ export default (position: number, fileName: string, scriptSnapshot: tslib.IScrip
1515 const node = findChildContainingPosition ( ts , sourceFile , nodePos )
1616 if ( ! node ) return [ ]
1717 const postfixes : PostfixCompletion [ ] = [ ]
18- let foundNode : tslib . Node | undefined
18+ let foundNode : ts . Node | undefined
1919 if (
2020 ts . isIdentifier ( node ) &&
2121 ( foundNode = findClosestParent ( ts , node , [ ts . SyntaxKind . BinaryExpression , ts . SyntaxKind . IfStatement ] , [ ] ) ) &&
@@ -44,7 +44,7 @@ export default (position: number, fileName: string, scriptSnapshot: tslib.IScrip
4444 return postfixes
4545}
4646
47- const isComparingToken = ( node : tslib . Node ) => {
47+ const isComparingToken = ( node : ts . Node ) => {
4848 switch ( node . kind ) {
4949 case ts . SyntaxKind . EqualsEqualsEqualsToken :
5050 case ts . SyntaxKind . EqualsEqualsToken :
@@ -59,7 +59,7 @@ const isComparingToken = (node: tslib.Node) => {
5959 return false
6060}
6161
62- const probablyAddNotSnippet = ( postfixes : PostfixCompletion [ ] , binaryExprNode : tslib . BinaryExpression , ts : typeof tslib ) => {
62+ const probablyAddNotSnippet = ( postfixes : PostfixCompletion [ ] , binaryExprNode : ts . BinaryExpression , ts : typeof tslib ) => {
6363 let replaceOperator : string | undefined
6464 switch ( binaryExprNode . operatorToken as any ) {
6565 case ts . SyntaxKind . EqualsEqualsEqualsToken :
0 commit comments