Skip to content

Commit

Permalink
docs: Fixed JSDoc ArgSerialiserFn typings
Browse files Browse the repository at this point in the history
  • Loading branch information
Alorel committed Mar 18, 2019
1 parent 98e9378 commit 1e65368
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,6 @@ export function Memoise(serialiser: Memoise.ArgSerialiserFn = stdSerialiser): Me
}

export module Memoise {
/** Serialiser function for computing cache keys. This accepts the method arguments. */
export type ArgSerialiserFn = (...args: any[]) => PropertyKey;
}

0 comments on commit 1e65368

Please sign in to comment.