Skip to content

Commit

Permalink
Adding missing typing (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
kikoanis committed Feb 21, 2020
1 parent e6dd7ed commit c3e265a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.d.ts
Expand Up @@ -19,9 +19,10 @@ declare namespace CacheableResponse {
send: (params: SendParams, ...props) => void
ttl?: number; // milliseconds
compress?: boolean;
serialize?: (object) => string;
deserialize?: (string) => object;
serialize?: (obj: object) => string;
deserialize?: (str: string) => object;
cache?: boolean;
getKey: (req: any) => string,
revalidate?: (ttl: number) => number;
}
type ReturnFunction = (params: SendParams) => void
Expand Down

0 comments on commit c3e265a

Please sign in to comment.