Skip to content

Commit

Permalink
docs: fix confusion of TypeScript vs ESM (#8214)
Browse files Browse the repository at this point in the history
  • Loading branch information
rotu committed May 14, 2024
1 parent 3414b64 commit d1a37c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/auto-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ The `electron-updater` package offers a different functionality compared to Elec

4. Use `autoUpdater` from `electron-updater` instead of `electron`:

JavaScript
CommonJS
```js
const { autoUpdater } = require("electron-updater")
```
ES2015
ESM
```js
import { autoUpdater } from "electron-updater"
```
ESM
```ts
TypeScript
```typescript
import electronUpdater, { type AppUpdater } from 'electron-updater';

export function getAutoUpdater(): AppUpdater {
Expand Down

0 comments on commit d1a37c3

Please sign in to comment.