Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Need support the typescript #10

Open
Tyler-Franklin opened this issue Apr 1, 2022 · 2 comments
Open

Need support the typescript #10

Tyler-Franklin opened this issue Apr 1, 2022 · 2 comments

Comments

@Tyler-Franklin
Copy link

thanks a lot

@Subilan
Copy link

Subilan commented Aug 1, 2022

same here

@tristanlins
Copy link

Add this to local *.d.ts file:

declare let SvgIcon: import("vue").DefineComponent<{
  type: {
    type: StringConstructor;
    default: string;
  };
  path: {
    type: StringConstructor;
    default: string;
  };
  size: {
    type: NumberConstructor;
    optional: boolean;
  };
  viewbox: {
    type: StringConstructor;
    optional: boolean;
  };
  flip: {
    type: StringConstructor;
    optional: boolean;
  };
  rotate: {
    type: StringConstructor;
    optional: boolean;
  };
}>;

declare module "@jamescoyle/vue-icon" {
  export default SvgIcon
}

Its just basic, but typescript compiler will complain less. 😉

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants