import { AsyncCallbackFn , CallbackFn } from "../types" ; import { walk , walkAsync } from "../walk" ; export function apply ( target , ... callbacks ) { walk ( target , { callbacks : callbacks . map ( c => ( { callback : c } ) ) } ) ; } export async function applyAsync ( target , ... callbacks ) { await walkAsync ( target , { callbacks : callbacks . map ( c => ( { callback : c } ) ) } ) ; }