https://kasata.medium.com/resolving-property-x-does-not-exist-on-type-y-error-in-typescript-db605a28aa78