apply lint
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
/*
|
||||
* SPDX-License-Identifier: GPL-3.0
|
||||
* Vencord Desktop, a desktop app aiming to give you a snappier Discord Experience
|
||||
* Copyright (c) 2023 Vendicated and Vencord contributors
|
||||
*/
|
||||
|
||||
import type { Settings as TSettings } from "shared/settings";
|
||||
import { makeChangeListenerProxy } from "shared/utils/makeChangeListenerProxy";
|
||||
|
||||
import { Common } from "./vencord";
|
||||
|
||||
const signals = new Set<() => void>();
|
||||
@@ -23,6 +30,6 @@ export function useSettings() {
|
||||
export function getValueAndOnChange(key: keyof TSettings) {
|
||||
return {
|
||||
value: Settings[key] as any,
|
||||
onChange: (value: any) => Settings[key] = value
|
||||
onChange: (value: any) => (Settings[key] = value)
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user