ERP-node/frontend/lib/v2-core/index.ts

41 lines
815 B
TypeScript
Raw Normal View History

/**
* V2 Core -
*
* :
* ```typescript
* import {
* v2EventBus,
* V2_EVENTS,
* V2ErrorBoundary,
* initV2Core,
* } from "@/lib/v2-core";
*
* // 앱 시작 시 초기화
* initV2Core();
*
* // 이벤트 발행
* v2EventBus.emit(V2_EVENTS.TABLE_REFRESH, { tableName: "item_info" });
*
* // 이벤트 구독
* const unsubscribe = v2EventBus.subscribe(V2_EVENTS.TABLE_REFRESH, (payload) => {
* console.log("테이블 새로고침:", payload.tableName);
* });
* ```
*/
// 이벤트 시스템
export * from "./events";
// 컴포넌트
export * from "./components";
// 어댑터
export * from "./adapters";
// 서비스
export * from "./services";
// 초기화
export { initV2Core, cleanupV2Core } from "./init";