Skip to content

Commit

Permalink
refactor: Turn ServiceWorker into TS
Browse files Browse the repository at this point in the history
  • Loading branch information
null2264 committed Sep 23, 2023
1 parent ae65328 commit 096cce6
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/* @preval */
import fs from 'node:fs';
import path from 'path';

const fs = require('fs');
const path = require('path');

const filtered = {};
const filtered: Record<string, Record<string, string>> = {};
const filenames = fs.readdirSync(path.resolve(__dirname, '../locales'));

filenames.forEach(filename => {
Expand Down Expand Up @@ -35,4 +33,4 @@ filenames.forEach(filename => {
};
});

module.exports = JSON.parse(JSON.stringify(filtered));
export default filtered;

0 comments on commit 096cce6

Please sign in to comment.