Comparing version 2.0.3 to 2.0.4
@@ -9,9 +9,10 @@ // @flow | ||
} | ||
type AppOptions = ?{ | ||
debugUi?: boolean, | ||
freezeUi ?: boolean, | ||
executor ?: Executor | ||
} | ||
declare module "vasille" { | ||
declare module "vasille" { | ||
declare type AppOptions = ?{ | ||
debugUi?: boolean, | ||
freezeUi ?: boolean, | ||
executor ?: Executor | ||
} | ||
declare export class Destroyable { | ||
@@ -182,3 +183,3 @@ $seal () : void; | ||
declare export class Slot< | ||
t1 = void, t2 = void, t3 = void, t4 = void, t5 = void, t6 = void, t7 = void, t8 = void, t9 = void | ||
T = Fragment, t1 = void, t2 = void, t3 = void, t4 = void, t5 = void, t6 = void, t7 = void, t8 = void, t9 = void | ||
> { | ||
@@ -237,2 +238,4 @@ runner : ?(a0 : T, a1 : t1, a2 : t2, a3 : t3, a4 : t4, a5 : t5, a6 : t6, a7 : t7, a8 : t8, a9 : t9) => void; | ||
removeOne (v : T) : this; | ||
enableReactivity () : void; | ||
disableReactivity () : void; | ||
} | ||
@@ -246,2 +249,4 @@ declare export class MapModel<K, T> extends Map<K, T> implements IModel { | ||
set (key : K, value : T) : this; | ||
enableReactivity () : void; | ||
disableReactivity () : void; | ||
} | ||
@@ -255,2 +260,4 @@ declare export class ObjectModel<T> extends Object implements IModel { | ||
delete (key : string) : void; | ||
enableReactivity () : void; | ||
disableReactivity () : void; | ||
} | ||
@@ -262,4 +269,6 @@ declare export class SetModel<T> extends Set<T> implements IModel { | ||
add (value : T) : this; | ||
clear () : this; | ||
clear () : void; | ||
delete (value : T) : boolean; | ||
enableReactivity () : void; | ||
disableReactivity () : void; | ||
} | ||
@@ -307,3 +316,2 @@ declare export class AppNode extends INode { | ||
declare export class Fragment extends Reactive { | ||
$ : FragmentPrivate; | ||
$children : Array<Fragment>; | ||
@@ -332,8 +340,8 @@ | ||
tagName : string, | ||
cb : ?(node : Tag, element : T) => void | ||
cb ?: (node : Tag, element : T) => void | ||
) : this; | ||
$create<T> ( | ||
node : T, | ||
callback : ($ : T) => void, | ||
callback1 : ($ : T) => void | ||
callback ?: ($ : T) => void, | ||
callback1 ?: ($ : T) => void | ||
) : this; | ||
@@ -364,3 +372,2 @@ $if ( | ||
declare export class TextNode extends Fragment { | ||
$ : TextNodePrivate; | ||
constructor () : void; | ||
@@ -378,3 +385,2 @@ | ||
declare export class INode extends Fragment { | ||
$ : INodePrivate; | ||
@@ -608,3 +614,2 @@ constructor ($ : ?INodePrivate) : void; | ||
declare export class DebugNode extends Fragment { | ||
$ : DebugPrivate; | ||
@@ -611,0 +616,0 @@ constructor () : void; |
@@ -1015,3 +1015,3 @@ import { Reactive, ReactivePrivate } from "../core/core"; | ||
else { | ||
throw internalError("A extension node can be encapsulated only in a tag/extension/component"); | ||
throw userError("A extension node can be encapsulated only in a tag/extension/component", "virtual-dom"); | ||
} | ||
@@ -1040,3 +1040,3 @@ } | ||
if (this.$children.length !== 1) { | ||
throw userError("UserNode must have a child only", "dom-error"); | ||
throw userError("Component must have a child only", "dom-error"); | ||
} | ||
@@ -1049,5 +1049,8 @@ const child = this.$children[0]; | ||
else { | ||
throw userError("UserNode child must be Tag or Component", "dom-error"); | ||
throw userError("Component child must be Tag or Component", "dom-error"); | ||
} | ||
} | ||
$preinit(app, parent) { | ||
this.$.preinit(app, parent); | ||
} | ||
} | ||
@@ -1054,0 +1057,0 @@ /** |
@@ -6,3 +6,3 @@ { | ||
"types": "types/index.d.ts", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"exports": { | ||
@@ -27,9 +27,8 @@ "import": "./lib/index.js", | ||
"keywords": [ | ||
"front-end", | ||
"web", | ||
"app", | ||
"safe", | ||
"fast", | ||
"poweful", | ||
"frontend", | ||
"javascript", | ||
"typescript", | ||
"flow-js" | ||
"poweful" | ||
], | ||
@@ -36,0 +35,0 @@ "author": "Vasile Lixcode <lixcode@vivaldi.net> (https://t.me/lixcode)", |
@@ -670,2 +670,3 @@ import { Reactive, ReactivePrivate } from "../core/core"; | ||
$mounted(): void; | ||
$preinit(app: AppNode, parent: Fragment): void; | ||
} | ||
@@ -672,0 +673,0 @@ /** |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
389399
12615