You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> tsc index.ts
index.ts:7:23 - error TS2345: Argument of type '{ message: string; }' is not assignable to parameter of type 'string | RollupWarning'.
Property 'code' is missing in type '{ message: string; }' but required in type 'RollupWarning'.
7 this.warn({ message: 'hmm' });
~~~~~~~~~~~~~~~~~~
node_modules/rollup/dist/rollup.d.ts:15:2
15 code: string;
~~~~
'code' is declared here.
Found 1 error.
The text was updated successfully, but these errors were encountered:
The TypeScript declaration for
RollupWarning
contains acode
property that should be optional, but isn't.How Do We Reproduce?
Start developing a plugin, using TypeScript.
package.json
index.ts
Now do:
Expected Behavior
No errors
Actual Behavior
The text was updated successfully, but these errors were encountered: