I just had an issue since I'm using TypeScript and this package does not contain definitions.
I'm no TS expert (first time I ever write a definition), but I got it working using the following:
declare module 'electron-aspect-ratio-browser-window' {
import { BrowserWindow } from 'electron';
export default class AspectRatioBrowserWindow extends BrowserWindow {};
}
Just found your lib and it's working great 👍
I just had an issue since I'm using TypeScript and this package does not contain definitions. I'm no TS expert (first time I ever write a definition), but I got it working using the following:
Hope it helps!