/** * THIS CODE IS NOT WRITTEN BY THE AUTHOR OF FAKEYOU.TS * (which is why types here are weak 🤣 sorry, had to say it) * * @see https://github.com/miktam/sizeof * * Original code does not support esmodules, so I copied it here and changed it just enough to make TypeScript happy! * Adapted to support esmodules so I can use it in the code as a means to manage the cache size. */ declare function sizeof(obj: NonNullable): number; export default sizeof;