Skip to content

Commit

Permalink
Fix the timers/promises import
Browse files Browse the repository at this point in the history
For some reason importing `timers` and acccessing `timers.promises` doesn't work like I thought it would. The API is there but it doesn't take a number.
  • Loading branch information
TomasHubelbauer committed Jun 3, 2024
1 parent e9b6cfa commit 45f2a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import electron from 'electron';
import child_process from 'child_process';
import util from 'util';
import timers from 'timers';
import timers from 'timers/promises';
import fs from 'fs';

electron.app.on('ready', async () => {
Expand Down

0 comments on commit 45f2a3c

Please sign in to comment.