@@ -1944,6 +1944,7 @@ export type BaseMacro = Record<
19441944export type MaybeValueOrVoidFunction < T > = T | ( ( ...a : any ) => void | T )
19451945
19461946export interface MacroProperty <
1947+ in out Macro extends BaseMacro = { } ,
19471948 in out TypedRoute extends RouteSchema = { } ,
19481949 in out Singleton extends SingletonBase = {
19491950 decorator : { }
@@ -1966,9 +1967,16 @@ export interface MacroProperty<
19661967 afterResponse ?: MaybeArray < AfterResponseHandler < TypedRoute , Singleton > >
19671968 resolve ?: MaybeArray < ResolveHandler < TypedRoute , Singleton > >
19681969 detail ?: DocumentDecoration
1970+ /**
1971+ * Introspect hook option for documentation generation or analysis
1972+ *
1973+ * @param option
1974+ */
1975+ introspect ?( option : Prettify < Macro > ) : unknown
19691976}
19701977
19711978export interface Macro <
1979+ in out Macro extends BaseMacro = { } ,
19721980 in out Input extends BaseMacro = { } ,
19731981 in out TypedRoute extends RouteSchema = { } ,
19741982 in out Singleton extends SingletonBase = {
@@ -1980,7 +1988,7 @@ export interface Macro<
19801988 in out Errors extends Record < string , Error > = { }
19811989> {
19821990 [ K : keyof any ] : MaybeValueOrVoidFunction <
1983- Input & MacroProperty < TypedRoute , Singleton , Errors >
1991+ Input & MacroProperty < Macro , TypedRoute , Singleton , Errors >
19841992 >
19851993}
19861994
0 commit comments