Doubts about PouchDB, CouchDB

Hi everyone,
I’m trying to understand how to map my classes (Typescript) to document in couchDB/pouchDB. Is there any particular patter to follow to structure my models?? And how is possible making call in order to obtain directly the class from the query instead of a json object that oblige me to use only “any” as type of data??
Thanks everyone.