-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshim.d.ts
26 lines (23 loc) · 857 Bytes
/
shim.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import type { AttributifyAttributes } from '@unocss/preset-attributify';
import type { ProtocolWithReturn } from 'webext-bridge';
declare module 'react' {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
interface HTMLAttributes<T> extends Omit<AttributifyAttributes, 'size'> {}
}
declare module 'webext-bridge' {
export interface ProtocolMap {
// define message protocol types
// see https://github.com/antfu/webext-bridge#type-safe-protocols
'tab-prev': { title: string | undefined };
'get-current-tab': ProtocolWithReturn<{ tabId: number }, { title?: string }>;
}
}
declare global {
interface Document {
/**
* 비표준 기능을 사용합니다.
* @see https://developer.mozilla.org/docs/Web/API/Document/startViewTransition
*/
startViewTransition?: (callback: () => void) => void;
}
}