| 62 | }; |
| 63 | |
| 64 | declare interface WeexElement { |
| 65 | nodeType: number; |
| 66 | nodeId: string; |
| 67 | type: string; |
| 68 | ref: string; |
| 69 | text?: string; |
| 70 | |
| 71 | parentNode: WeexElement | void; |
| 72 | children: Array<WeexElement>; |
| 73 | previousSibling: WeexElement | void; |
| 74 | nextSibling: WeexElement | void; |
| 75 | |
| 76 | appendChild: (node: WeexElement) => void; |
| 77 | removeChild: (node: WeexElement, preserved?: boolean) => void; |
| 78 | insertBefore: (node: WeexElement, before: WeexElement) => void; |
| 79 | insertAfter: (node: WeexElement, after: WeexElement) => void; |
| 80 | setAttr: (key: string, value: any, silent?: boolean) => void; |
| 81 | setAttrs: (attrs: Object, silent?: boolean) => void; |
| 82 | setStyle: (key: string, value: any, silent?: boolean) => void; |
| 83 | setStyles: (attrs: Object, silent?: boolean) => void; |
| 84 | addEvent: (type: string, handler: Function, args?: Array<any>) => void; |
| 85 | removeEvent: (type: string) => void; |
| 86 | fireEvent: (type: string) => void; |
| 87 | destroy: () => void; |
| 88 | }; |
| 89 | |
| 90 | declare type WeexInstanceOption = { |
| 91 | instanceId: string; |
nothing calls this directly
no outgoing calls
no test coverage detected