Commit 86ae49e9 authored by nanahira's avatar nanahira

for nestjs changes

parent 2e398038
...@@ -63,8 +63,11 @@ export type BeforeEventName = OmitSubstring<EventName & string, 'before-'>; ...@@ -63,8 +63,11 @@ export type BeforeEventName = OmitSubstring<EventName & string, 'before-'>;
export type BeforeEventNameAndPrepend = export type BeforeEventNameAndPrepend =
CommonEventNameAndPrepend<BeforeEventName>; CommonEventNameAndPrepend<BeforeEventName>;
export type ContextFunction<T> = (ctx: Context) => T; export type ContextFunction<T, C extends Context = Context> = (ctx: C) => T;
export type OnContextFunction = ContextFunction<Context>; export type OnContextFunction<C extends Context = Context> = ContextFunction<
C,
C
>;
export interface MappingStruct< export interface MappingStruct<
T extends Record<string | number | symbol, any>, T extends Record<string | number | symbol, any>,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment