developit / developit/decko

Issues with Typescript

Offen
#19 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
1k
Forks
34
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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'.
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

No source file, test, TypeScript version, or reproduction project is mentioned. Start by reproducing the reported compilation error with the bind decorator, then inspect the bind decorator's TypeScript typing; done means the reported error no longer occurs without breaking the decorator's existing behavior.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
typescript
Bereich
tooling
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.