mirror of
https://github.com/sern-handler/tools
synced 2026-06-06 01:16:59 +00:00
add tsignores
This commit is contained in:
@@ -91,12 +91,12 @@ export const localize = (root?: string) =>
|
||||
const resolvedLocalization= 'command/'+(root??module.name);
|
||||
Reflect.set(module, 'name_localizations', deps.localizer.translationsFor(resolvedLocalization+".name"));
|
||||
Reflect.set(module, 'description_localizations', deps.localizer.translationsFor(resolvedLocalization+'.description'));
|
||||
//@ts-ignore
|
||||
const newOpts = module.options ?? [];
|
||||
//@ts-ignore
|
||||
dfsApplyLocalization(newOpts, deps, [resolvedLocalization]);
|
||||
return controller.next();
|
||||
} else {
|
||||
//@ts-ignore
|
||||
return controller.stop("Cannot localize this type of module " + module.name);
|
||||
}
|
||||
})
|
||||
|
||||
@@ -209,6 +209,7 @@ export const publishConfig = (config: ValidPublishOptions) => {
|
||||
}
|
||||
let _config=config
|
||||
if(typeof _config === 'function') {
|
||||
//@ts-ignore fix later
|
||||
_config = _config(absPath, module);
|
||||
}
|
||||
const { contexts, defaultMemberPermissions, integrationTypes } = _config
|
||||
|
||||
Reference in New Issue
Block a user