Skip to content

2.0.3 typescript error #459

@doits

Description

@doits

I updated to 2.0.3 but it now gives a typescript error:

ERROR in .../node_modules/v-tooltip/types/index.d.ts(3,1):
3:1 Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.
    1 | import Vue, { VueConstructor, DirectiveOptions, PluginFunction } from 'vue';
    2 |
  > 3 | const vToolTip: PluginFunction<any>;
      | ^
    4 | export default vToolTip;
    5 |
    6 | export const VPopover: VueConstructor<Vue>;

I think it is resolved by changing lines 3 and 4 to one line:

export default const vToolTip: PluginFunction<any>;

At least with this I have no typescript error anymore, but I am not sure if this changes the meaning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions