diff options
author | Kristóf Marussy <kristof@marussy.com> | 2021-12-24 13:15:07 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2021-12-24 13:15:07 +0100 |
commit | 912f910bafaac1b5f30d0c08aa10d107b24c09d4 (patch) | |
tree | d378e491fc98c3de068da8a1ca19aebf5fe52873 /config | |
parent | feat: User-agent reduction (diff) | |
download | sophie-912f910bafaac1b5f30d0c08aa10d107b24c09d4.tar.gz sophie-912f910bafaac1b5f30d0c08aa10d107b24c09d4.tar.zst sophie-912f910bafaac1b5f30d0c08aa10d107b24c09d4.zip |
fix: Typings in js config files
Diffstat (limited to 'config')
-rw-r--r-- | config/vite-common.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config/vite-common.js b/config/vite-common.js index 7d8e6a4..6b1d7c7 100644 --- a/config/vite-common.js +++ b/config/vite-common.js | |||
@@ -4,7 +4,7 @@ | |||
4 | // @ts-expect-error | 4 | // @ts-expect-error |
5 | import { chrome as chromeVersion, node as nodeVersion } from '../.electron-vendors.cache.json'; | 5 | import { chrome as chromeVersion, node as nodeVersion } from '../.electron-vendors.cache.json'; |
6 | 6 | ||
7 | /** @type string */ | 7 | /** @type {string} */ |
8 | const banner = `/*! | 8 | const banner = `/*! |
9 | * Copyright (C) 2021-2022 Sophie contributors | 9 | * Copyright (C) 2021-2022 Sophie contributors |
10 | * | 10 | * |
@@ -26,16 +26,16 @@ const banner = `/*! | |||
26 | */ | 26 | */ |
27 | `; | 27 | `; |
28 | 28 | ||
29 | /** @type string */ | 29 | /** @type {string} */ |
30 | export const chrome = `chrome${chromeVersion}`; | 30 | export const chrome = `chrome${chromeVersion}`; |
31 | 31 | ||
32 | /** @type string */ | 32 | /** @type {string} */ |
33 | export const node = `node${nodeVersion}`; | 33 | export const node = `node${nodeVersion}`; |
34 | 34 | ||
35 | /** | 35 | /** |
36 | * Extends a vite configuration with common options. | 36 | * Extends a vite configuration with common options. |
37 | * | 37 | * |
38 | * @param config {import('vite').UserConfig} The configuration to extend. | 38 | * @param {import('vite').UserConfig} config The configuration to extend. |
39 | * @return {import('vite').UserConfig} The configuration extended with common options. | 39 | * @return {import('vite').UserConfig} The configuration extended with common options. |
40 | */ | 40 | */ |
41 | export function makeConfig(config) { | 41 | export function makeConfig(config) { |