diff options
Diffstat (limited to 'src/lib/extensions/global.d.ts')
-rw-r--r-- | src/lib/extensions/global.d.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/extensions/global.d.ts b/src/lib/extensions/global.d.ts index 1a30056..8427873 100644 --- a/src/lib/extensions/global.d.ts +++ b/src/lib/extensions/global.d.ts @@ -4,4 +4,13 @@ declare global { var client: BushClient; var util: BushClientUtil; var __rootdir__: string; + + // eslint-disable-next-line @typescript-eslint/no-unused-vars + interface ReadonlyArray<T> { + includes<S, R extends `${Extract<S, string>}`>( + this: ReadonlyArray<R>, + searchElement: S, + fromIndex?: number + ): searchElement is R & S; + } } |