I'm using vue3 with typescript, and I'm using composition API.
export default {
setup(props, context) {
},
};
This throws an error as follows
Failed to compile.
src/components/LoginForm.vue:20:11
TS7006: Parameter 'props' implicitly has an 'any' type.
18 |
19 | export default {
> 20 | setup(props, context) {
| ^^^^^
I know this can be fixed by making props, context of type any, but that will defeat the purpose of TypeScript.
VS Code intellisense showing me the following type, but I'm not able to find the module from these type are exported.
setup?: ((this: void, props: {}, ctx: SetupContext<EmitsOptions>) => void | RenderFunction
What is the correct Type for the setup function, and from where it is exported ?.


propsshould be inferred automatically from your component'spropsoption...