mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
fix error when method and onLoad have params (#35339)
This commit is contained in:
parent
a1302810f3
commit
14effc6d16
5
types/tinajs__tina/index.d.ts
vendored
5
types/tinajs__tina/index.d.ts
vendored
@ -1,6 +1,7 @@
|
||||
// Type definitions for @tinajs/tina 1.4
|
||||
// Project: https://github.com/tinajs/tina, https://tina.js.org
|
||||
// Definitions by: Jiayu Liu <https://github.com/Jimexist>
|
||||
// Strange Fish <https://github.com/strange-fish>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/tinajs__tina
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
@ -22,7 +23,7 @@ export interface ComponentDefinitions extends ComponentLifecycles {
|
||||
properties: ComponentProperties;
|
||||
data: { [key: string]: any };
|
||||
compute: (data: { [key: string]: any }) => { [key: string]: any };
|
||||
methods: { [name: string]: (this: Component) => any };
|
||||
methods: { [name: string]: (this: Component, ...args: any[]) => any };
|
||||
mixins: Array<Partial<ComponentDefinitions>>;
|
||||
}
|
||||
|
||||
@ -35,7 +36,7 @@ export class Component {
|
||||
|
||||
export interface PageHooks {
|
||||
beforeLoad: (this: Page) => void;
|
||||
onLoad: (this: Page) => void;
|
||||
onLoad: (this: Page, options?: any) => void;
|
||||
onReady: (this: Page) => void;
|
||||
onShow: (this: Page) => void;
|
||||
onHide: (this: Page) => void;
|
||||
|
||||
@ -46,7 +46,7 @@ Page.define({
|
||||
this.data.count;
|
||||
},
|
||||
methods: {
|
||||
handleTapButton() {
|
||||
handleTapButton(event) {
|
||||
this.data.count;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user