chore: initialize dependencies and zca-js project files

This commit is contained in:
Victor Phan
2026-07-17 20:35:17 +07:00
parent caa9717571
commit d36007d989
1551 changed files with 191538 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
import { type ContextSession } from "../context.js";
import { type FactoryUtils } from "../utils.js";
export type CustomAPIProps<T, K> = {
ctx: ContextSession;
utils: FactoryUtils<T>;
props: K;
};
export type CustomAPICallback<T, K> = (props: CustomAPIProps<T, K>) => T | Promise<T>;
export declare const customFactory: (ctx: import("../context.js").ContextBase, api: import("../apis.js").API) => <T, K = any>(name: string, callback: CustomAPICallback<T, K>) => void;