Skip to content

Commit

Permalink
Implement the proposed fix from issue #1290 (#1499)
Browse files Browse the repository at this point in the history
* Implement the proposed fix from issue #1290

#1290

Without this change, if strict type checking is enabled, usages of a `@unmanaged()` decorator cause the following error:

```
Argument of type 'undefined' is not assignable to parameter of type 'string'.
```

* Empty commit to nudge CI
  • Loading branch information
petetronic authored Aug 15, 2023
1 parent 1133992 commit 6ea7278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/annotation/unmanaged.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Metadata } from '../planning/metadata';
import { tagParameter, DecoratorTarget } from './decorator_utils';

function unmanaged() {
return function (target: DecoratorTarget, targetKey: string, index: number) {
return function (target: DecoratorTarget, targetKey: string | undefined, index: number) {
const metadata = new Metadata(METADATA_KEY.UNMANAGED_TAG, true);
tagParameter(target, targetKey, index, metadata);
};
Expand Down

0 comments on commit 6ea7278

Please sign in to comment.