Skip to content

Commit

Permalink
Meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 30, 2019
1 parent 1c0eeab commit 8af8b55
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 3 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/// <reference lib="dom"/>
/// <reference types="electron"/>
/// <reference types="node"/>
import {BrowserWindow} from 'electron';

declare namespace electronServe {
Expand Down
2 changes: 1 addition & 1 deletion index.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {expectType} from 'tsd-check';
import {expectType} from 'tsd';
import {BrowserWindow} from 'electron';
import serve = require('.');

Expand Down
9 changes: 4 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Normally you would just use `win.loadURL('file://…')`, but that doesn't work w
$ npm install electron-serve
```

*Requires Electron 3 or later.*


## Usage

Expand All @@ -20,6 +22,8 @@ const serve = require('electron-serve');

const loadURL = serve({directory: 'renderer'});

let mainWindow;

(async () => {
await app.whenReady();

Expand Down Expand Up @@ -72,8 +76,3 @@ The [partition](https://electronjs.org/docs/api/session#sessionfrompartitionpart
- [electron-context-menu](https://github.com/sindresorhus/electron-context-menu) - Context menu for your Electron app
- [electron-dl](https://github.com/sindresorhus/electron-dl) - Simplified file downloads for your Electron app
- [electron-unhandled](https://github.com/sindresorhus/electron-unhandled) - Catch unhandled errors and promise rejections in your Electron app


## License

MIT © [Sindre Sorhus](https://sindresorhus.com)

0 comments on commit 8af8b55

Please sign in to comment.