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

TurnOrder issue when using a plugin #1131

Open
walkerkd opened this issue Feb 10, 2023 · 0 comments
Open

TurnOrder issue when using a plugin #1131

walkerkd opened this issue Feb 10, 2023 · 0 comments

Comments

@walkerkd
Copy link
Contributor

If you use a plugin such as the bgio-effects plugin then the TurnOrder definitions are not compatible when using Typescript.

So a turn description which includes:

    turn: {
        order: TurnOrder.ONCE,
    },

will not compile.

This is similar to issue #1050

The work around I found was to use:

    turn: {
        order: TurnOrder.ONCE as unknown as TurnOrderConfig<
            State,
            EffectsCtxMixin<typeof EffectsConfig>
        >,
    },
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

1 participant