Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescriptify ClientRequestCache #204

Merged
merged 2 commits into from
Aug 21, 2020
Merged

Conversation

Half-Shot
Copy link
Contributor

No description provided.

@Half-Shot Half-Shot requested a review from a team August 20, 2020 13:33
Copy link
Contributor

@jaller94 jaller94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

giphub

src/components/client-request-cache.ts Outdated Show resolved Hide resolved
* @returns {Promise} The request, or undefined if not retrievable.
* @throws {Error} If the key is not a string.
*/
get(key, ...args) {
get(key: string, ...args: any[]) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that doesn't break TypeScripts analysis:

Suggested change
get(key: string, ...args: any[]) {
get(key: string, ...args: unknown[]) {

src/components/intent.ts Outdated Show resolved Hide resolved
src/components/client-request-cache.ts Outdated Show resolved Hide resolved
@Half-Shot Half-Shot merged commit f784d5e into develop Aug 21, 2020
@Half-Shot Half-Shot deleted the hs/ts-client-request-cache branch August 21, 2020 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants