Skip to content
This repository was archived by the owner on Aug 20, 2024. It is now read-only.

fix: types definition on proxy function can accept a function as first parameter#57

Open
f4b1ux wants to merge 1 commit intonsimmons:masterfrom
f4b1ux:fix/types
Open

fix: types definition on proxy function can accept a function as first parameter#57
f4b1ux wants to merge 1 commit intonsimmons:masterfrom
f4b1ux:fix/types

Conversation

@f4b1ux
Copy link
Copy Markdown

@f4b1ux f4b1ux commented Mar 29, 2024

The proxy function can accept the host as a string or as a function that, given the koa context, returns a string.

In the types.d.ts file the function accepts only a string, and this doesn't permit to use the feature in typescript.

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.

1 participant