developit / developit/decko

Issues with Typescript

Open
#19 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1k
Forks
34
PR merge metrics
No merged PRs in 30d

Description

Attempting to use `bind` throws this compilation error:

```
TS1241: Unable to resolve signature of method decorator when called as an expression.
Type 'TypedPropertyDescriptor' is not assignable to type 'void | TypedPropertyDescriptor<(userInfo: Readonly) => void>'.
Type 'TypedPropertyDescriptor' is not assignable to type 'TypedPropertyDescriptor<(userInfo: Readonly) => void>'.
Types of property 'value' are incompatible.
Type 'unknown' is not assignable to type '((userInfo: Readonly) => void) | undefined'.
Type 'unknown' is not assignable to type '(userInfo: Readonly) => void'.
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.