Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
planAndTarget => observableFrom(Scheduler.performerRegistry)::find(
Performer => Performer.canHandle(planAndTarget)
)::tap(
Performer => {
console.assert(
Performer !== undefined,
planAndTarget.plan,
`Material Motion could not find a Performer class to handle this plan. ` +
(
Scheduler.performerRegistry.length === 0
? `To ensure all the default Performers are available, add this line to your application:\n\n` +
` import * as MaterialMotion from "material-motion-experiments";`
: `If you are using a custom Performer, ensure that you've registered it with the Scheduler:\n\n` +
` Scheduler.registerPerformer(MyCustomerPerformerClass)`
)
);
}