To avoid getting an unmet peer dependency "typescript@*" warning, ts-pnp should be a peer or optional dependency. Your only use of ts-pnp is in an exported function that isn't used by your code. I don't see why your code should have anything typescript specific in it. If it's needed by external code, then make your interface more generic, and let that external code do whatever it needs to to hook in to your code.
To avoid getting an
unmet peer dependency "typescript@*"warning,ts-pnpshould be a peer or optional dependency. Your only use ofts-pnpis in an exported function that isn't used by your code. I don't see why your code should have anything typescript specific in it. If it's needed by external code, then make your interface more generic, and let that external code do whatever it needs to to hook in to your code.