diff --git a/packages/mana-core/src/keyboard/browser-keyboard-layout-provider.ts b/packages/mana-core/src/keyboard/browser-keyboard-layout-provider.ts index d4095ee..bafe736 100644 --- a/packages/mana-core/src/keyboard/browser-keyboard-layout-provider.ts +++ b/packages/mana-core/src/keyboard/browser-keyboard-layout-provider.ts @@ -31,8 +31,8 @@ export class BrowserKeyboardLayoutProvider @inject(LocalStorageService) protected readonly storageService: LocalStorageService; - constructor(@inject(LocalStorageService) storageService: LocalStorageService) { - this.storageService = storageService; + constructor() { + // this.storageService = storageService; this.layoutDatas = [ this.getLayoutData('en-US-pc', en_US_pc), this.getLayoutData('en-US-mac', en_US_mac), diff --git a/packages/mana-syringe/src/contribution/decorator.ts b/packages/mana-syringe/src/contribution/decorator.ts index 1a438da..7fc6a22 100644 --- a/packages/mana-syringe/src/contribution/decorator.ts +++ b/packages/mana-syringe/src/contribution/decorator.ts @@ -1,5 +1,6 @@ import type { Syringe } from '../core'; import { inject, named } from '../decorator'; + import { Provider } from './contribution-protocol'; export const contrib = @@ -7,7 +8,7 @@ export const contrib = ( // eslint-disable-next-line @typescript-eslint/no-explicit-any target: any, - targetKey: string, + targetKey: any, index?: number | undefined, ) => { named(token)(target, targetKey, index); diff --git a/packages/mana-syringe/src/contribution/index.spec.ts b/packages/mana-syringe/src/contribution/index.spec.ts index e33193e..284d094 100644 --- a/packages/mana-syringe/src/contribution/index.spec.ts +++ b/packages/mana-syringe/src/contribution/index.spec.ts @@ -3,11 +3,12 @@ import 'reflect-metadata'; import assert from 'assert'; -import { Contribution, contrib, Module } from '..'; import { GlobalContainer } from '../container'; import { register } from '../container'; +import { Contribution, contrib } from '../contribution/index'; import { Syringe } from '../core'; import { inject, singleton } from '../decorator'; +import { Module } from '../module/index'; import { DefaultContributionProvider } from './contribution-provider';