Browse Source

feat: 输出workers

es6
iapyang 2 years ago
parent
commit
77bfb87775
  1. 15
      typescript/core/worker/workers.ts
  2. 3
      typescript/index.ts

15
typescript/core/worker/workers.ts

@ -0,0 +1,15 @@
import { WorkerChannel } from "./worker.channel";
import { WorkerBaseController } from "./controller/worker.controller";
import { WorkerMessageType } from "./worker.core";
import { WorkerMainThreadController } from "./controller/worker.main_thread.controller";
import { WorkerThreadController } from "./controller/worker.worker_thread.controller";
import WorkerBaseAction from "./action/worker.action";
export const Workers = {
WorkerChannel,
WorkerBaseController,
WorkerMainThreadController,
WorkerThreadController,
WorkerBaseAction,
WorkerMessageType,
};

3
typescript/index.ts

@ -188,6 +188,7 @@ import { VerticalStickyLayout } from "./core/wrapper/layout/sticky/sticky.vertic
import { HorizontalStickyLayout } from "./core/wrapper/layout/sticky/sticky.horizontal"; import { HorizontalStickyLayout } from "./core/wrapper/layout/sticky/sticky.horizontal";
import { TableLayout } from "./core/wrapper/layout/layout.table"; import { TableLayout } from "./core/wrapper/layout/layout.table";
import './shims-tsx'; import './shims-tsx';
import { Workers } from "./core/worker/workers";
export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
@ -382,10 +383,12 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
VerticalStickyLayout: typeof VerticalStickyLayout; VerticalStickyLayout: typeof VerticalStickyLayout;
HorizontalStickyLayout: typeof HorizontalStickyLayout; HorizontalStickyLayout: typeof HorizontalStickyLayout;
TableLayout: typeof TableLayout; TableLayout: typeof TableLayout;
Workers: typeof Workers;
} }
export default { export default {
Decorators: decorator, Decorators: decorator,
Workers,
}; };
export { export {
OB, OB,

Loading…
Cancel
Save