mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-24 15:35:11 +00:00
Styles: fix setStyleVariables type
This commit is contained in:
parent
2f80cecbb9
commit
a2785628c6
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ export function deleteStyle(style: Style | string) {
|
|||
* @see {@link classNamesToSelectors} for converting a class names object to variables
|
||||
* @see {@link enableStyle} for info on importing managed styles
|
||||
*/
|
||||
export const setStyleVariables = (style: Style | string, variables: Record<string, string>, recompile = true) => {
|
||||
export const setStyleVariables = (style: Style | string, variables: Style["variables"], recompile = true) => {
|
||||
if (typeof style === "string") style = requireStyle(style);
|
||||
style.variables = variables;
|
||||
if (recompile) compileStyle(style);
|
||||
|
|
Loading…
Add table
Reference in a new issue