@@ -373,7 +373,7 @@ export type TransformDescriptor = {
373373 with ?: Record < string , Rspack . RuleSetCondition > ;
374374} ;
375375
376- export type TransformFn = (
376+ export type TransformHook = (
377377 descriptor : TransformDescriptor ,
378378 handler : TransformHandler ,
379379) => void ;
@@ -450,9 +450,9 @@ export type ResolveHandler = (context: {
450450 compilation : Rspack . Compilation ;
451451} ) => Promise < void > | void ;
452452
453- export type ResolveFn = ( handler : ResolveHandler ) => void ;
453+ export type ResolveHook = ( handler : ResolveHandler ) => void ;
454454
455- export type ProcessAssetsFn = (
455+ export type ProcessAssetsHook = (
456456 descriptor : ProcessAssetsDescriptor ,
457457 handler : ProcessAssetsHandler ,
458458) => void ;
@@ -607,19 +607,19 @@ export type RsbuildPluginAPI = Readonly<{
607607 * Modify assets before emitting, the same as Rspack's
608608 * [compilation.hooks.processAssets](https://rspack.dev/api/plugin-api/compilation-hooks#processassets) hook.
609609 */
610- processAssets : ProcessAssetsFn ;
610+ processAssets : ProcessAssetsHook ;
611611 /**
612612 * Intercept and modify module request information before module resolution begins.
613613 * The same as Rspack's [normalModuleFactory.hooks.resolve](https://rspack.dev/api/plugin-api/normal-module-factory-hooks#resolve) hook.
614614 */
615- resolve : ResolveFn ;
615+ resolve : ResolveHook ;
616616 /**
617617 * A simplified wrapper around Rspack loaders, `api.transform` lets you
618618 * easily transform the code of specific modules during the build process.
619619 * You can match files by module path, query, or other conditions, and
620620 * apply custom transformations to their contents.
621621 */
622- transform : TransformFn ;
622+ transform : TransformHook ;
623623 /**
624624 * Get the properties or methods exposed by other plugins.
625625 */
0 commit comments