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

In setInteractionMode function, implementation parameter should be optional parameter #2351

Closed
WarisR opened this issue Sep 20, 2019 · 0 comments · Fixed by #2352
Closed

Comments

@WarisR
Copy link
Contributor

WarisR commented Sep 20, 2019

export const setInteractionMode = (mode: string, implementation: InteractionModeFactory) => {
  setConfig({ mode });
  if (!implementation) {
    return;
  }

  if (!isCallable(implementation)) {
    throw new Error('A mode implementation must be a function');
  }

  modes[mode] = implementation;
};

implementation parameter should be optional parameter

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