getUserDetails formats the name correctly => ./service_test.ts:5:6error: TypeError: Cannot assign to read only property 'getUserFromDB' of object '[object Module]' db.getUserFromDB = async (id: string) => { ^ at file:///home/.../service_test.ts:10:19
getUserDetails formats the name correctly => ./service_test.ts:5:6error: TypeError: Cannot assign to read only property 'getUserFromDB' of object '[object Module]' db.getUserFromDB = async (id: string) => { ^ at file:///home/.../service_test.ts:10:19
I'm running with
--no-checks
--no-checks
to prove its not only a type issue, but the type checker does catch it if you remove the
--no-check
--no-check
flag.
Is there anyway to get this example to work or another way to isolate