UNPKG

528 BTypeScriptView Raw
1/**
2 * Copyright (c) 2018-present, Ephox, Inc.
3 *
4 * This source code is licensed under the Apache 2 license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 */
8export type CallbackFn = () => void;
9export interface IStateObj {
10 listeners: CallbackFn[];
11 scriptId: string;
12 scriptLoaded: boolean;
13}
14interface ScriptLoader {
15 load: (doc: Document, url: string, callback: CallbackFn) => void;
16 reinitialize: () => void;
17}
18declare const ScriptLoader: ScriptLoader;
19export { ScriptLoader };