Skip to content

Commit

Permalink
fix: interface
Browse files Browse the repository at this point in the history
  • Loading branch information
linyyyang committed Feb 20, 2023
1 parent c37c2e2 commit 41831a8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
13 changes: 3 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,10 @@
"dependencies": {
"koatty_lib": "^1.x.x",
"koatty_logger": "^2.x.x",
"reflect-metadata": "^0.1.13",
"tslib": "^2.4.1"
"reflect-metadata": "^0.1.13"
},
"peerDependencies": {
"koatty_lib": "^1.x.x",
"koatty_logger": "^2.x.x"
}
}
}
8 changes: 4 additions & 4 deletions src/IContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export interface Application {
*
* @memberof Application
*/
getMetaData: (key: string) => unknown;
setMetaData: (key: string, value: unknown) => Map<string, unknown>;
getMetaData: (key: string) => any[] | null;
setMetaData: (key: string, value: unknown) => void;
}
/**
* Base Context.
Expand All @@ -69,8 +69,8 @@ export interface Context {
*
* @memberof Context
*/
getMetaData: (key: string) => unknown;
setMetaData: (key: string, value: unknown) => Map<string, unknown>;
getMetaData: (key: string) => any[] | null;
setMetaData: (key: string, value: unknown) => void;
}

/**
Expand Down

0 comments on commit 41831a8

Please sign in to comment.