parent
4f9039f5e7
commit
5e1552b1ee
2 changed files with 4 additions and 4 deletions
4
index.d.ts
vendored
4
index.d.ts
vendored
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
export interface ChildArray extends Array<Children> {}
|
export interface ChildArray extends Array<Children> {}
|
||||||
export type Children = Child | ChildArray;
|
export type Children = Child | ChildArray;
|
||||||
export type Child = string | VirtualElement | Component<Controller>;
|
export type Child = string | TrustedString | VirtualElement | Component<Controller>;
|
||||||
|
|
||||||
export interface Static {
|
export interface Static {
|
||||||
/**
|
/**
|
||||||
|
|
@ -884,7 +884,7 @@ export interface Component<T extends Controller> {
|
||||||
*
|
*
|
||||||
* @see m.component
|
* @see m.component
|
||||||
*/
|
*/
|
||||||
controller: ControllerFunction<T> | ControllerConstructor<T>;
|
controller?: ControllerFunction<T> | ControllerConstructor<T>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a view out of virtual elements.
|
* Creates a view out of virtual elements.
|
||||||
|
|
|
||||||
4
mithril.d.ts
vendored
4
mithril.d.ts
vendored
|
|
@ -7,7 +7,7 @@
|
||||||
declare namespace Mithril {
|
declare namespace Mithril {
|
||||||
interface ChildArray extends Array<Children> {}
|
interface ChildArray extends Array<Children> {}
|
||||||
type Children = Child | ChildArray;
|
type Children = Child | ChildArray;
|
||||||
type Child = string | VirtualElement | Component<Controller>;
|
type Child = string | TrustedString | VirtualElement | Component<Controller>;
|
||||||
|
|
||||||
interface Static {
|
interface Static {
|
||||||
/**
|
/**
|
||||||
|
|
@ -558,7 +558,7 @@ declare namespace Mithril {
|
||||||
*
|
*
|
||||||
* @see m.component
|
* @see m.component
|
||||||
*/
|
*/
|
||||||
controller: ControllerFunction<T> | ControllerConstructor<T>;
|
controller?: ControllerFunction<T> | ControllerConstructor<T>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a view out of virtual elements.
|
* Creates a view out of virtual elements.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue