seo-rii / electron-acrylic-window

Add acrylic effect to your electron application
MIT License
279 stars 23 forks source link

Error when using typescript (Occurs when attempting to compile with tsc command) #81

Closed coredev-uk closed 9 months ago

coredev-uk commented 2 years ago

node_modules/electron-acrylic-window/dist/browserWindow.d.ts:67:5 - error TS2416: Property 'setVibrancy' in type 'BrowserWindow' is not assignable to the same property in base type 'BrowserWindow'.
  Type '(options?: Vibrancy | undefined) => void' is not assignable to type '(type: "window" | "content" | "header" | "menu" | "appearance-based" | "light" | "dark" | "titlebar" | "selection" | "popover" | "sidebar" | "medium-light" | "ultra-dark" | "sheet" | ... 5 more ... | null) => void'.
    Types of parameters 'options' and 'type' are incompatible.
      Type '"window" | "content" | "header" | "menu" | "appearance-based" | "light" | "dark" | "titlebar" | "selection" | "popover" | "sidebar" | "medium-light" | "ultra-dark" | "sheet" | ... 5 more ... | null' is not assignable to type 'Vibrancy | undefined'.
        Type 'null' is not assignable to type 'Vibrancy | undefined'.

67     setVibrancy(options?: Vibrancy): void;
coredev-uk commented 9 months ago

Project looks abandoned, closing