scttcper/ngx-emoji-mart

Property '"x"' is incompatible with index signature. Type 'x' is not assignable to type 'string'.

ariwoot opened this issue · 0 comments

Hello,
i'm trying to use the library but i'm getting this repeated error when serving it:

Property '"skin"' is incompatible with index signature.
Type '{ alias: "skin"; required: false; }' is not assignable to type 'string'.

Property '"emojis"' is incompatible with index signature.
Type '{ alias: "emojis"; required: false; }' is not assignable to type 'string'.

Property '"categories"' is incompatible with index signature.
Type '{ alias: "categories"; required: false; }' is not assignable to type 'string'.

I've installed npm i @types/emoji-mart and imported it in the app module.
then i've insert it in the component <emoji-mart set="apple" class="emoji-mart"></emoji-mart>.

Do you know why? Thank you