update omi.d.ts

This commit is contained in:
dntzhang 2019-04-22 17:41:37 +08:00
parent 88cb1716b1
commit 875a89f949
4 changed files with 18 additions and 10 deletions

View File

@ -103,10 +103,10 @@ declare namespace Omi {
props: RenderableProps<P>;
data: D;
host: HTMLElement;
update(): void;
fire(name: string, data?: object): void;
css(): string;
// Abstract methods don't infer argument types
// https://github.com/Microsoft/TypeScript/issues/14887
abstract render(props: RenderableProps<P>, data: D): void;
@ -157,7 +157,7 @@ declare namespace Omi {
update(): void;
fire(name: string, data?: object): void;
css(): string;
// Abstract methods don't infer argument types
// https://github.com/Microsoft/TypeScript/issues/14887
abstract render(props: RenderableProps<P>, data: D): void;
@ -182,6 +182,8 @@ declare namespace Omi {
function nextTick(callback: Callback, scope?: any): void;
function observe(target: WeElementConstructor): void;
function getHost(element: WeElement): WeElement;
function classNames(...args: any[]): string;
function extractClass(...args: any[]): object;
var options: {
vnode?: (vnode: VNode<any>) => void;

View File

@ -103,10 +103,10 @@ declare namespace Omi {
props: RenderableProps<P>;
data: D;
host: HTMLElement;
update(): void;
fire(name: string, data?: object): void;
css(): string;
// Abstract methods don't infer argument types
// https://github.com/Microsoft/TypeScript/issues/14887
abstract render(props: RenderableProps<P>, data: D): void;
@ -157,7 +157,7 @@ declare namespace Omi {
update(): void;
fire(name: string, data?: object): void;
css(): string;
// Abstract methods don't infer argument types
// https://github.com/Microsoft/TypeScript/issues/14887
abstract render(props: RenderableProps<P>, data: D): void;
@ -182,6 +182,8 @@ declare namespace Omi {
function nextTick(callback: Callback, scope?: any): void;
function observe(target: WeElementConstructor): void;
function getHost(element: WeElement): WeElement;
function classNames(...args: any[]): string;
function extractClass(...args: any[]): object;
var options: {
vnode?: (vnode: VNode<any>) => void;

View File

@ -106,7 +106,7 @@ declare namespace Omi {
update(): void;
fire(name: string, data?: object): void;
css(): string;
// Abstract methods don't infer argument types
// https://github.com/Microsoft/TypeScript/issues/14887
abstract render(props: RenderableProps<P>, data: D): void;
@ -157,7 +157,7 @@ declare namespace Omi {
update(): void;
fire(name: string, data?: object): void;
css(): string;
// Abstract methods don't infer argument types
// https://github.com/Microsoft/TypeScript/issues/14887
abstract render(props: RenderableProps<P>, data: D): void;
@ -182,6 +182,8 @@ declare namespace Omi {
function nextTick(callback: Callback, scope?: any): void;
function observe(target: WeElementConstructor): void;
function getHost(element: WeElement): WeElement;
function classNames(...args: any[]): string;
function extractClass(...args: any[]): object;
var options: {
vnode?: (vnode: VNode<any>) => void;

View File

@ -106,7 +106,7 @@ declare namespace Omi {
update(): void;
fire(name: string, data?: object): void;
css(): string;
// Abstract methods don't infer argument types
// https://github.com/Microsoft/TypeScript/issues/14887
abstract render(props: RenderableProps<P>, data: D): void;
@ -157,7 +157,7 @@ declare namespace Omi {
update(): void;
fire(name: string, data?: object): void;
css(): string;
// Abstract methods don't infer argument types
// https://github.com/Microsoft/TypeScript/issues/14887
abstract render(props: RenderableProps<P>, data: D): void;
@ -182,6 +182,8 @@ declare namespace Omi {
function nextTick(callback: Callback, scope?: any): void;
function observe(target: WeElementConstructor): void;
function getHost(element: WeElement): WeElement;
function classNames(...args: any[]): string;
function extractClass(...args: any[]): object;
var options: {
vnode?: (vnode: VNode<any>) => void;