16 lines
493 B
TypeScript
16 lines
493 B
TypeScript
![]() |
/**
|
||
|
* Copyright (c) 2018-present, Ephox, Inc.
|
||
|
*
|
||
|
* This source code is licensed under the Apache 2 license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*
|
||
|
*/
|
||
|
export declare type callbackFn = () => void;
|
||
|
export interface IStateObj {
|
||
|
listeners: callbackFn[];
|
||
|
scriptId: string;
|
||
|
scriptLoaded: boolean;
|
||
|
}
|
||
|
export declare const create: () => IStateObj;
|
||
|
export declare const load: (state: IStateObj, doc: Document, url: string, callback: callbackFn) => void;
|