Browse Source

chore: jsx生命周期函数补全

es6
iapyang 3 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; beforeRender(callback: () => void): void;
beforeInit(callback: () => void): void; beforeInit(callback: () => void): void;
render(): any; 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 { declare namespace JSX {

Loading…
Cancel
Save