Skip to content

Commit 5590dca

Browse files
committed
feat: provide abstract class baseService
1 parent 77f5fcd commit 5590dca

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/services/baseService.ts

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export abstract class BaseService {
2+
/**
3+
* Subscribe the service event
4+
* @param name Event name
5+
* @param callback Callback function
6+
*/
7+
public abstract subscribe(name: string | string [], callback: Function);
8+
}

0 commit comments

Comments
 (0)