Browse Source

chore: jsx生命周期函数补全

master
iapyang 4 years ago
parent
commit
fb1b2220c7
  1. 10
      typescript/shims-tsx.ts

10
typescript/shims-tsx.ts

@ -49,6 +49,16 @@ interface ElementClassProps<T> extends UIProps {
beforeRender(callback: () => void): void;
beforeInit(callback: () => void): void;
render(): any;
beforeCreate(): void;
created(): void;
beforeMount(): void;
mounted(): void;
shouldUpdate(): void;
update(): void;
beforeUpdate(): void;
updated(): void;
beforeDestroy(): void;
destroyed(): void;
}
declare namespace JSX {

Loading…
Cancel
Save