Skip to content

Commit c26eb00

Browse files
committed
fix: update Middleware to include any service identifier
1 parent 4a6aaf1 commit c26eb00

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313
- Updated `BaseMiddleware.handler` to allow async handlers.
14+
- Updated `Middleware` to allow include any `ServiceIdentifier`.
1415

1516
### Fixed
1617

1718
## [6.4.10]
1819

19-
### Added
20-
21-
### Changed
22-
2320
### Fixed
2421
- Fixed `Controller` without wrong constraints (#417).
2522

src/interfaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export type DecoratorTarget<T = unknown> =
2525
| ConstructorFunction<T>
2626
| Prototype<T>;
2727

28-
export type Middleware = string | symbol | RequestHandler;
28+
export type Middleware = inversifyInterfaces.ServiceIdentifier | RequestHandler;
2929

3030
export interface MiddlewareMetaData {
3131
[identifier: string]: Middleware[];

0 commit comments

Comments
 (0)