add config module

This commit is contained in:
2025-06-10 23:08:01 +08:00
parent 2e4997da9c
commit cb15a976f1
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -73,10 +73,10 @@ export async function createBootModule(
providers.push({ provide: APP_PIPE, useValue: pipe });
}
if (globals.intercepter !== null) {
if (globals.interceptor !== null) {
providers.push({
provide: APP_INTERCEPTOR,
useClass: globals.intercepter ?? AppInterceptor,
useClass: globals.interceptor ?? AppInterceptor,
});
}
+1 -1
View File
@@ -18,7 +18,7 @@ export interface CreateOptions {
globals?: {
pipe?: (configure: Configure) => PipeTransform<any> | null;
intercepter?: Type<any> | null;
interceptor?: Type<any> | null;
filter?: Type<any> | null;
};