Skip to content

Commit

Permalink
chore: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
BroKun authored and sunshinesmilelk committed Sep 20, 2024
1 parent 029bb3e commit 226c9d3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
3 changes: 2 additions & 1 deletion packages/mana-syringe/src/contribution/decorator.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import type { Syringe } from '../core';
import { inject, named } from '../decorator';

import { Provider } from './contribution-protocol';

export const contrib =
(token: Syringe.Named) =>
(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
target: any,
targetKey: string,
targetKey: any,
index?: number | undefined,
) => {
named(token)(target, targetKey, index);
Expand Down
3 changes: 2 additions & 1 deletion packages/mana-syringe/src/contribution/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down

0 comments on commit 226c9d3

Please sign in to comment.