generated from diplodoc-platform/package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
34 lines (25 loc) · 843 Bytes
/
types.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
27
28
29
30
31
32
33
34
import {GLOBAL_SYMBOL, QUEUE_SYMBOL} from './constants';
import {ScriptStore} from './common';
export type ControllerCallback<T> = (controller: T) => void;
export type SetConfigArgs = EmbedsConfig;
export interface EmbedsConfig {
classNames?: string[];
styles?: Record<string, string>;
isolatedSandboxHostURIOverride?: string;
onload?: (host: HTMLIFrameElement) => (() => void) | void;
}
export type Unsubscribe = () => void;
export type CSSProperties = {
[property: string]: string | number;
};
export type BaseTarget = '_self' | '_blank' | '_parent' | '_top';
export type StylesObject = {
[selector: string]: CSSProperties;
};
export type EmbeddingMode = 'shadow' | 'srcdoc' | 'isolated';
declare global {
interface Window {
[GLOBAL_SYMBOL]: ScriptStore;
[QUEUE_SYMBOL]: boolean;
}
}