Skip to content

Commit

Permalink
fix: test类型提示
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-cn committed Jul 11, 2024
1 parent 4b49f41 commit e80d1b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/plugins/test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Plugin, Message } from 'zhin';
import '@zhinjs/plugin-sandbox';
import * as path from 'path';
import type {} from '@zhinjs/client';
import type {} from '@zhinjs/web';

const test = new Plugin('测试插件'); // 定义插件
test.required('functionManager', 'component'); // 声明插件必须依赖的服务
Expand Down Expand Up @@ -59,9 +59,9 @@ test
});
return `inputResult:${input} ${typeof input}`;
});
test.required('addEntry');
test.required('web');
test.mounted(() => {
test.addEntry(path.resolve(__dirname, '../client/index.ts'));
test.web.addEntry(path.resolve(__dirname, '../client/index.ts'));
test.component({
name: 'test2',
render(_, context) {
Expand Down

0 comments on commit e80d1b7

Please sign in to comment.