@arkstack/foundry 0.17.15 → 0.17.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region src/types.d.ts
|
|
2
2
|
interface HookRegistry {}
|
|
3
3
|
type Position = 'before' | 'after' | (string & {});
|
|
4
|
-
type IHook = { [P in Position]?: (...args: any[]) => void };
|
|
4
|
+
type IHook = { [P in Position]?: (...args: any[]) => void; };
|
|
5
5
|
type HookName = keyof HookRegistry extends never ? string : keyof HookRegistry | (string & {});
|
|
6
6
|
type HookFor<N extends string> = N extends keyof HookRegistry ? HookRegistry[N] : IHook;
|
|
7
7
|
type HookPos<N extends string, P extends string> = N extends keyof HookRegistry ? P extends keyof HookRegistry[N] ? HookRegistry[N][P] : (...args: any[]) => void : (...args: any[]) => void;
|
package/package.json
CHANGED