Skip to content

Commit

Permalink
fix: 🪲 add missing Omit type
Browse files Browse the repository at this point in the history
  • Loading branch information
edbzn committed Nov 13, 2019
1 parent 422b221 commit 8158da9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/plugin-cache/src/lib/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ export interface Metadata {
createdAt: string;
}

// @todo remove this type for ts >= 3.5
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;

export type PartialMetadata = Omit<Metadata, 'isFromCache'>;

export interface HttpExtCacheResponse extends HttpExtResponse {
Expand Down

0 comments on commit 8158da9

Please sign in to comment.