UNPKG

533 BTypeScriptView Raw
1/**
2 * Interface to provide enabled/disabled functionality. Also see
3 * `@IEnable` decorator mixin
4 *
5 * @param T - type for enable/disable option arg
6 */
7export interface IEnable<T> {
8 isEnabled(): boolean;
9 /**
10 * Disables this entity.
11 * @param opts - optional implementation specific arg
12 */
13 disable(opts?: T): any;
14 /**
15 * Enables this entity.
16 * @param opts - optional implementation specific arg
17 */
18 enable(opts?: T): any;
19 toggle?(): boolean;
20}
21//# sourceMappingURL=enable.d.ts.map
\No newline at end of file