export default function memoize(fn: (arg: ArgType) => ReturnType): (arg: ArgType) => ReturnType;