NetOperatorWibby opened a new issue #276:
URL: https://github.com/apache/couchdb-nano/issues/276


   ## Expected Behavior
   
   I should be able to insert anything into my database.
   
   ## Current Behavior
   
   I am unable to insert arbitrary data into my database for some reason.
   
   ## Steps to Reproduce (for bugs)
   
   ```ts
   // my code
   const createResponse = await customerDatabase.insert({
     email,
     id: nanoid(),
     username: createUsername(email),
     ...CustomerDefault
   });
   ```
   
   ```log
   # error in console, TS2345
   Object literal may only specify known properties, and 'email' does not exist 
in type 'MaybeDocument | ViewDocument<unknown>'.
   ```
   
   ## Your Environment
   * Version used: latest
   * Operating System and version (desktop or mobile): latest non-beta macOS


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to