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

Mixin syntax gives error #117

Open
sp00x opened this issue May 28, 2024 · 1 comment
Open

Mixin syntax gives error #117

sp00x opened this issue May 28, 2024 · 1 comment

Comments

@sp00x
Copy link

sp00x commented May 28, 2024

I've never had any success with the Mixin following the example in the docs - Is the syntax outdated for recent Node and TypeScript versions?

@Emittery.mixin('emittery')
class Foo {
}

Gives

Unable to resolve signature of class decorator when called as an expression.
The runtime will invoke the decorator with 2 arguments, but the decorator expects 1.(1238)

on the @Emittery.mixin line

I've tried specifying the method names also to no better result

@cyrilchapon
Copy link

try

    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,

in tsconfig.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants