Skip to content

Commit

Permalink
Make CouchDoc _id and _rev properties non-nullable to fix constant un…
Browse files Browse the repository at this point in the history
…defined checks in TS.
  • Loading branch information
nozzlegear committed Aug 28, 2017
1 parent 092d547 commit 6a752be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -539,12 +539,12 @@ export interface CouchDoc {
/**
* The object's database id.
*/
_id?: string;
_id: string;

/**
* The object's database revision.
*/
_rev?: string;
_rev: string;
}

export interface PostPutCopyResponse {
Expand Down

0 comments on commit 6a752be

Please sign in to comment.