type func = (...args: any) => any export default function memoize(callback: T, resolver?: (...args: Parameters) => string): T