Skip to content

Commit a9b729c

Browse files
committed
fix build
1 parent 1c06d96 commit a9b729c

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

pnpm-lock.yaml

Lines changed: 5 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typescript/src/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { ConditionalPick } from 'type-fest'
44
import type { Configuration } from '../../src/configurationType'
55
// eslint-disable-next-line @typescript-eslint/no-redeclare
66
export type Configuration = Configuration & { editorSuggestInsertModeReplace: boolean }
7-
export type GetConfig = <T extends keyof Configuration>(key: T) => Configuration[T]
7+
type LocalConfig = Configuration & { editorSuggestInsertModeReplace: boolean }
8+
export type GetConfig = <T extends keyof LocalConfig>(key: T) => LocalConfig[T]
89
export type LanguageServiceMethodWithConfig<T extends keyof ConditionalPick<ts.LanguageService, (...args) => any>> = (
910
c: GetConfig,
1011
...args: Parameters<ts.LanguageService[T]>

typescript/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export const getCancellationToken = (languageServiceHost: ts.LanguageServiceHost
246246
return cancellationToken
247247
}
248248

249-
const wordRangeAtPos = (text: string, position: number) => {
249+
export const wordRangeAtPos = (text: string, position: number) => {
250250
const isGood = (pos: number) => {
251251
return /[-\w\d]/i.test(text.at(pos) ?? '')
252252
}

0 commit comments

Comments
 (0)