Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible de typer les données sur le composant #20

Closed
Malrok opened this issue Dec 17, 2018 · 1 comment

Comments

Projects
2 participants
@Malrok
Copy link
Contributor

commented Dec 17, 2018

Constaté sur PITANGOO web

J'ai créé un attribut bruitData que je passe en paramètre au composant bruit.io

footer.component.ts

public readonly bruitData: BrtData[] = [];

footer.component.html

<bruit-io id="bruit" [config]="bruitConfig" [data]="bruitData">

J'ai une erreur de compilation :

ERROR in node_modules/@bruit/component/dist/types/stencil.core.d.ts(133,23): error TS2315: Type 'CustomEvent' is not generic. node_modules/@bruit/component/dist/types/stencil.core.d.ts(202,46): error TS2304: Cannot find name 'HTMLDialogElement'.

En supprimant le type, ça passe :
footer.component.ts

public readonly bruitData = [];

@pedubreuil pedubreuil added this to To do in bruit.io Dec 19, 2018

@pedubreuil pedubreuil moved this from To do to In progress in bruit.io Dec 19, 2018

@lamstutz lamstutz moved this from In progress to To do in bruit.io Dec 19, 2018

@pedubreuil pedubreuil moved this from To do to In progress in bruit.io Dec 19, 2018

@pedubreuil pedubreuil moved this from In progress to To do in bruit.io Dec 19, 2018

@lamstutz

This comment has been minimized.

Copy link
Member

commented Dec 19, 2018

typescript < 2.7

@Malrok Malrok moved this from To do to In progress in bruit.io Dec 20, 2018

@Malrok Malrok moved this from In progress to To do in bruit.io Dec 20, 2018

@lamstutz lamstutz moved this from To do to Done in bruit.io Jan 9, 2019

@lamstutz lamstutz moved this from Done to To do in bruit.io Jan 9, 2019

@lamstutz lamstutz closed this Jan 9, 2019

@lamstutz lamstutz moved this from To do to Done in bruit.io Jan 9, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.