[REF] component, vdom: small cleanup

This commit is contained in:
Géry Debongnie
2019-04-25 17:10:36 +02:00
parent 9544034e6f
commit 2bd0719b9a
2 changed files with 2 additions and 5 deletions
+2 -3
View File
@@ -3,7 +3,6 @@ import { Observer } from "./observer";
import { QWeb } from "./qweb";
import { h, patch, VNode } from "./vdom";
//------------------------------------------------------------------------------
// Types/helpers
//------------------------------------------------------------------------------
@@ -12,7 +11,7 @@ export interface Env {
qweb: QWeb;
}
export interface Meta<T extends Env, Props> {
interface Meta<T extends Env, Props> {
readonly id: number;
vnode: VNode | null;
isStarted: boolean;
@@ -155,7 +154,7 @@ export class Component<
* It is not called on the initial render. This is useful to get some
* information which are in the DOM. For example, the current position of the
* scrollbar
*
*
* The return value of willPatch will be given to the patched function.
*/
willPatch(): any {}
-2
View File
@@ -28,8 +28,6 @@ interface VNodeData {
hook?: Hooks;
key?: Key;
ns?: string; // for SVGs
fn?: () => VNode; // for thunks
args?: Array<any>; // for thunks
[key: string]: any; // for any other 3rd party module
}