vue-icon icon indicating copy to clipboard operation
vue-icon copied to clipboard

Need support the typescript

Open Tyler-Franklin opened this issue 2 years ago • 2 comments

thanks a lot

Tyler-Franklin avatar Apr 01 '22 04:04 Tyler-Franklin

same here

Subilan avatar Aug 01 '22 02:08 Subilan

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. 😉

tristanlins avatar Apr 30 '23 06:04 tristanlins