Appearance
模板方法模式 - 定义算法骨架,步骤可定制。
import { createTemplateMethod } from 'zcw-shared/functions/patterns/templateMethod' const template = createTemplateMethod({ step1: () => console.log('Step 1'), step2: () => console.log('Step 2') })