bug: @ts-ignore causing issues when libchecking providers
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 32/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- node.js, typescript
- Ambito
- build-system, tooling
Direzione di ricerca
Inizia da src/interface.ts, in particolare dalle righe 69-82, e confrontalo con il file generato node_modules/@amazon-web-services-cloudformation/cloudformation-cli-typescript-lib/dist/interface.d.ts. Riproduci il fallimento di lib-check/build di TypeScript segnalato e traccia il motivo per cui sono state aggiunte le dichiarazioni Integer e IntegerConstructor. Il lavoro è completato quando il provider può eseguire lib-check senza gli errori TS2430 segnalati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
i am unable to do libChecking on my providers as this commit adds @ts-ignore directives to the interface Integer here.
for this is problematic as it causes the following issue when building my resources (below).
i think the suggestion in the commit message is that resources should disable "lib checking". I dont see this as a great solution as it applies to all libraries. As i use aws-sdkv3 in my resources (and additional components i build using smithy), i have more than once caught issues due to incompatibilities between transient dependencies.
reviewing the code i am also not able to understand why the code was added to the interface. browsing through the issues and commit messages doesn't seem to provide answers to this question either.
any recommended path forward is greatly appreciated.
@kddejong, @ericzbeard
node_modules/@amazon-web-services-cloudformation/cloudformation-cli-typescript-lib/dist/interface.d.ts:30:11 - error TS2430: Interface 'Integer' incorrectly extends interface 'BigInt'.
Types of property '[Symbol.toStringTag]' are incompatible.
Type '"Integer"' is not assignable to type '"BigInt"'.
30 interface Integer extends BigInt {
~~~~~~~
node_modules/@amazon-web-services-cloudformation/cloudformation-cli-typescript-lib/dist/interface.d.ts:35:11 - error TS2430: Interface 'IntegerConstructor' incorrectly extends interface 'BigIntConstructor'.
Types of property 'prototype' are incompatible.
Type 'Integer' is not assignable to type 'BigInt'.
35 interface IntegerConstructor extends BigIntConstructor {
- Lingua principale
- TypeScript
- Stelle
- 46
- Fork
- 18
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di aws-cloudformation/cloudformation-cli-typescript-plugin
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
aws-cloudformation/cloudformation-cli-typescript-plugin#136 · 1 reazione ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
aws-cloudformation/cloudformation-cli-typescript-plugin#121 · 9 commenti · 1 reazione ·
-
integration tests are broken Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
aws-cloudformation/cloudformation-cli-typescript-plugin#115 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
aws-cloudformation/cloudformation-cli-typescript-plugin#113 ·
-
aws-cloudformation/cloudformation-cli-typescript-plugin#103 · 1 commento · 1 assegnatario ·
Tutte le issue di aws-cloudformation/cloudformation-cli-typescript-plugin
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
bcgov/bc-wallet-mobile#4761 · 1 commento ·
-
external-issue to-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
area-deployment area-integrations triage:bot-seen
Difficoltà 2/5 Mezza giornata Idoneità per principianti 86/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100