Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

enhancement: spread options in LoadFunction type #42

Merged
merged 1 commit into from
Feb 11, 2020
Merged

enhancement: spread options in LoadFunction type #42

merged 1 commit into from
Feb 11, 2020

Conversation

samantha-wong
Copy link

@samantha-wong samantha-wong commented Feb 11, 2020

when using this function in deferredLoads, I'm getting Type '(strategyId: string, body: Record<string, any>) => any' is not assignable to type 'LoadFunction<any>'..

Not sure if this is a valid issue, maybe my code just sucks... :P

export const backtestStrategy = (
strategyId: string,
body: Record<string, any>,
) =>
request({
url: /v1/backtest/strategies/${strategyId},
method: 'POST',
data: body,
})

@samantha-wong samantha-wong requested a review from jxom February 11, 2020 09:44
@jxom jxom merged commit 994ef71 into jxom:master Feb 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants