How to set a custom type for context in v1.13? #788
-
|
In ky v1.12, this worked fine: declare module 'ky' {
interface Options {
context?: MyContext;
}
interface NormalizedOptions {
context?: MyContext;
}
}After upgrading to v1.13, I get this error:
|
Beta Was this translation helpful? Give feedback.
Answered by
sindresorhus
Oct 31, 2025
Replies: 1 comment
-
|
The Ky |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
fcsha
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Ky
contextoption is intentionally untyped. If you want your own, you have to use a different name.