aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/global.ts
blob: a9020d774c1d79c04309a18d142590d45cd8fd6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* eslint-disable no-var */
declare global {
	// 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;
	}
}

export {};