forked from emberjs/ember.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
45 lines (35 loc) · 1.55 KB
/
index.d.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
35
36
37
38
39
40
41
42
43
44
45
import { Option } from '@glimmer/interfaces';
import { SimpleElement } from '@simple-dom/interface';
import { Object as EmberObject } from '@ember/-internals/runtime';
export const ActionSupport: any;
export const ChildViewsSupport: any;
export const ClassNamesSupport: any;
export const CoreView: any;
export const ViewMixin: any;
export const ViewStateSupport: any;
export const TextSupport: any;
export function getElementView(element: SimpleElement): unknown;
export function getViewElement(view: unknown): Option<SimpleElement>;
export function setElementView(element: SimpleElement, view: unknown): void;
export function setViewElement(view: unknown, element: SimpleElement): void;
export function clearElementView(element: SimpleElement): void;
export function clearViewElement(view: unknown): void;
export function addChildView(parent: unknown, child: unknown): void;
export function isSimpleClick(event: Event): boolean;
export function constructStyleDeprecationMessage(affectedStyle: any): string;
export function getViewId(view: any): string;
export const MUTABLE_CELL: string;
export const ActionManager: {
registeredActions: {
[id: string]: any | undefined;
};
};
export declare class EventDispatcher extends EmberObject {
events: Record<string, string>;
finalEventNameMapping: Record<string, string>;
rootElement: string | HTMLElement;
lazyEvents: Map<string, string>;
setup(addedEvents: object, rootElement?: string | HTMLElement): void;
setupHandlerForBrowserEvent(event: string): void;
setupHandlerForEmberEvent(event: string): void;
}