forked from mystiq/hydrogen-web
Add type and fix formatting
This commit is contained in:
parent
313e65e00c
commit
1456e308a8
2 changed files with 2 additions and 3 deletions
|
@ -49,7 +49,7 @@ export class DerivedVariables {
|
||||||
return resolvedVariables;
|
return resolvedVariables;
|
||||||
}
|
}
|
||||||
|
|
||||||
private _detectAliases() {
|
private _detectAliases(): void {
|
||||||
const newVariablesToDerive: string[] = [];
|
const newVariablesToDerive: string[] = [];
|
||||||
for (const variable of this._variablesToDerive) {
|
for (const variable of this._variablesToDerive) {
|
||||||
const [alias, value] = variable.split("=");
|
const [alias, value] = variable.split("=");
|
||||||
|
@ -83,7 +83,6 @@ export class DerivedVariables {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private _deriveAlias(variable: string, resolvedVariables: Record<string, string>): string | undefined {
|
private _deriveAlias(variable: string, resolvedVariables: Record<string, string>): string | undefined {
|
||||||
const RE_VARIABLE_VALUE = /(.+)--(.+)-(.+)/;
|
const RE_VARIABLE_VALUE = /(.+)--(.+)-(.+)/;
|
||||||
const matches = variable.match(RE_VARIABLE_VALUE);
|
const matches = variable.match(RE_VARIABLE_VALUE);
|
||||||
|
|
|
@ -19,7 +19,7 @@ import type {Platform} from "../Platform.js";
|
||||||
import {RuntimeThemeParser} from "./parsers/RuntimeThemeParser";
|
import {RuntimeThemeParser} from "./parsers/RuntimeThemeParser";
|
||||||
import type {Variant, ThemeInformation} from "./parsers/types";
|
import type {Variant, ThemeInformation} from "./parsers/types";
|
||||||
import {ColorSchemePreference} from "./parsers/types";
|
import {ColorSchemePreference} from "./parsers/types";
|
||||||
import { BuiltThemeParser } from "./parsers/BuiltThemeParser";
|
import {BuiltThemeParser} from "./parsers/BuiltThemeParser";
|
||||||
|
|
||||||
export class ThemeLoader {
|
export class ThemeLoader {
|
||||||
private _platform: Platform;
|
private _platform: Platform;
|
||||||
|
|
Loading…
Reference in a new issue