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

LayerChangeFlags should also accept Record<string, boolean> #200

Open
jeffpeck10x opened this issue Jun 23, 2021 · 0 comments
Open

LayerChangeFlags should also accept Record<string, boolean> #200

jeffpeck10x opened this issue Jun 23, 2021 · 0 comments

Comments

@jeffpeck10x
Copy link

i.e.

updateTriggersChanged: boolean | string | Record<string, boolean> | null;

My workaround at the moment is to do this:

   const { updateTriggersChanged } = changeFlags as {
      updateTriggersChanged: false | Record<string, boolean>;
    };

  if (updateTriggersChanged && updateTriggersChanged.theAccessor) {
    ...
  }
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