Skip to content

Commit ffc04cf

Browse files
committed
hook interfaces
1 parent 5ec830a commit ffc04cf

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

test/feature/hooks.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

22
import { expect } from 'chai';
33
import 'mocha';
4-
import { Component, Base, Hook, toNative } from '../../dist/esm'
4+
import { Component, Base, Hook, toNative, HookMounted } from '../../dist/esm'
55

66
@Component
7-
class Comp extends Base {
7+
class Comp extends Base implements HookMounted {
88
mounted() {
99
return 'mounted test value'
1010
}
@@ -29,3 +29,4 @@ describe('feature hooks',
2929
}
3030
)
3131
export default {}
32+

test/hooks.ts

-6
This file was deleted.

0 commit comments

Comments
 (0)