Pass a config object to ConfigurableFocusTrapFactory.create

Proprietary

CDK 22 removed the create(element, deferCaptureElements: boolean) overload of ConfigurableFocusTrapFactory. Rewrites create(element, true) to create(element, {defer: true}), and marks calls whose second argument is a boolean expression other than a literal.

org.openrewrite.angular.cdk.MigrateFocusTrapFactoryCreate
mod run . --recipe=org.openrewrite.angular.cdk.MigrateFocusTrapFactoryCreate

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.