aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/global.d.ts
blob: 842787381afc786bd42145418763b66c70b07375 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* eslint-disable no-var */
import type { BushClient, BushClientUtil } from '#lib';
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;
	}
}