element-plus/build/utils/gulp.ts
2021-09-26 01:29:07 +08:00

5 lines
133 B
TypeScript

export const withTaskName = <T extends (...args: any) => any>(
name: string,
fn: T
) => Object.assign(fn, { displayName: name })