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

Typescript issue with the provided method signatures #3368

Closed
hexargon opened this issue Mar 18, 2021 · 2 comments
Closed

Typescript issue with the provided method signatures #3368

hexargon opened this issue Mar 18, 2021 · 2 comments

Comments

@hexargon
Copy link

Description:

Hi, actually I have a problem after importing the Ractive typings, the TypeScript compiler complains about missing parameter types. The parameters of the following exported method signatures are affected:

export type MacroFn = (MacroHelper) => MacroHandle;
export type PluginExtend = (PluginArgsExtend) => void;
export type PluginInstance = (PluginArgsInstance) => void;
export type Plugin = (PluginArgsBase) => void;

The reported Error Message is:
Typescript ErrorCode TS7051 "Parameter has a name but no type. Did you mean 'arg0: MacroHelper'?"
...

Is there a way to fix this issue.

Versions affected:

1.3.14

@evs-chris
Copy link
Contributor

I'm doing some typings work right now, but it turned out this was hiding some other typings issues too. In the meantime, it looks like you're not running into this issue with your code, so if you can turn on skipLibCheck, you should be able to get around it.

@evs-chris
Copy link
Contributor

This should be resolved on edge now, once travis finishes doing its thing.

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

No branches or pull requests

2 participants