@itwin/appui-codemod
Version:
Codemod scripts for AppUI.
10 lines (8 loc) • 515 B
text/typescript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
import type { JSCodeshift, Plugin } from "jscodeshift";
export function usePlugin(j: JSCodeshift, plugin: (j: JSCodeshift) => void) {
j.use(plugin as Plugin);
}