aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-24 13:15:07 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-24 13:15:07 +0100
commit912f910bafaac1b5f30d0c08aa10d107b24c09d4 (patch)
treed378e491fc98c3de068da8a1ca19aebf5fe52873 /config
parentfeat: User-agent reduction (diff)
downloadsophie-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.js8
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
5import { chrome as chromeVersion, node as nodeVersion } from '../.electron-vendors.cache.json'; 5import { chrome as chromeVersion, node as nodeVersion } from '../.electron-vendors.cache.json';
6 6
7/** @type string */ 7/** @type {string} */
8const banner = `/*! 8const 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} */
30export const chrome = `chrome${chromeVersion}`; 30export const chrome = `chrome${chromeVersion}`;
31 31
32/** @type string */ 32/** @type {string} */
33export const node = `node${nodeVersion}`; 33export 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 */
41export function makeConfig(config) { 41export function makeConfig(config) {