conversion to type script
This commit is contained in:
20
public/globals.d.ts
vendored
Normal file
20
public/globals.d.ts
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
type ProviderWidgetRoot = Element | Document;
|
||||
|
||||
interface Window {
|
||||
update?: (payload: unknown) => void;
|
||||
play?: () => void;
|
||||
stop?: () => void;
|
||||
twttr?: {
|
||||
widgets?: {
|
||||
load?: (root?: ProviderWidgetRoot) => void;
|
||||
};
|
||||
};
|
||||
instgrm?: {
|
||||
Embeds?: {
|
||||
process?: () => void;
|
||||
};
|
||||
};
|
||||
bluesky?: {
|
||||
scan?: (root?: ProviderWidgetRoot) => void;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user