Skip to content

Commit e658ed9

Browse files
chore(internal): add aliases for Record and Array (#162)
1 parent 8aea1ee commit e658ed9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/core.ts

+14
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,20 @@ export {
3333

3434
export type Fetch = (url: RequestInfo, init?: RequestInit) => Promise<Response>;
3535

36+
/**
37+
* An alias to the builtin `Array` type so we can
38+
* easily alias it in import statements if there are name clashes.
39+
*/
40+
type _Array<T> = Array<T>;
41+
42+
/**
43+
* An alias to the builtin `Record` type so we can
44+
* easily alias it in import statements if there are name clashes.
45+
*/
46+
type _Record<K extends keyof any, T> = Record<K, T>;
47+
48+
export type { _Array as Array, _Record as Record };
49+
3650
type PromiseOrValue<T> = T | Promise<T>;
3751

3852
type APIResponseProps = {

0 commit comments

Comments
 (0)