mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: express session
This commit is contained in:
@@ -13,7 +13,7 @@ import { OnModuleInit } from '@nestjs/common';
|
||||
import { I18nJsonLoader, I18nTranslation } from 'nestjs-i18n';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
import { ExtensionName } from '../types/extension';
|
||||
import { ExtensionName, HyphenToUnderscore } from '../types/extension';
|
||||
|
||||
export abstract class Extension implements OnModuleInit {
|
||||
private translations: I18nTranslation | Observable<I18nTranslation>;
|
||||
|
||||
@@ -11,3 +11,6 @@ import { HelperName } from '@/helper/types';
|
||||
import { PluginName } from '@/plugins/types';
|
||||
|
||||
export type ExtensionName = ChannelName | HelperName | PluginName;
|
||||
|
||||
export type HyphenToUnderscore<S extends string> =
|
||||
S extends `${infer P}-${infer Q}` ? `${P}_${HyphenToUnderscore<Q>}` : S;
|
||||
|
||||
Reference in New Issue
Block a user