fix: express session

This commit is contained in:
Mohamed Marrouchi
2024-10-26 09:02:34 +01:00
parent 1b1a0b4b35
commit c722b85d5d
11 changed files with 29 additions and 10 deletions

View File

@@ -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>;

View File

@@ -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;