From b5785976d454aec4146c52441ad5dd903c43cd5b Mon Sep 17 00:00:00 2001 From: Iulian Onofrei <5748627+revolter@users.noreply.github.com> Date: Sun, 25 Feb 2024 21:14:18 +0200 Subject: [PATCH] Refactor: Removed superfluous word from an interface name --- src/settings/SettingsManager.ts | 6 +++--- .../data/{RecipesPluginSettings.ts => RecipesSettings.ts} | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename src/settings/data/{RecipesPluginSettings.ts => RecipesSettings.ts} (88%) diff --git a/src/settings/SettingsManager.ts b/src/settings/SettingsManager.ts index 7e23b4a..bcbd4cc 100644 --- a/src/settings/SettingsManager.ts +++ b/src/settings/SettingsManager.ts @@ -1,15 +1,15 @@ import { Plugin } from 'obsidian'; import { HanayamaHuzzlesRecipeSettings } from 'src/recipes/hanayama_huzzles/settings/HanayamaHuzzlesRecipeSettings'; import { IQPuzzlesRecipeSettings } from 'src/recipes/iq_puzzles/settings/IQPuzzlesRecipeSettings'; -import { RecipesPluginSettings } from './data/RecipesPluginSettings'; +import { RecipesSettings } from './data/RecipesSettings'; export class SettingsManager { - static readonly #DEFAULT_SETTINGS: Partial = { + static readonly #DEFAULT_SETTINGS: Partial = { hanayamaHuzzles: new HanayamaHuzzlesRecipeSettings(), iqPuzzles: new IQPuzzlesRecipeSettings() }; - settings: RecipesPluginSettings; + settings: RecipesSettings; constructor(private plugin: Plugin) {} diff --git a/src/settings/data/RecipesPluginSettings.ts b/src/settings/data/RecipesSettings.ts similarity index 88% rename from src/settings/data/RecipesPluginSettings.ts rename to src/settings/data/RecipesSettings.ts index 7e3a97a..d8c5c54 100644 --- a/src/settings/data/RecipesPluginSettings.ts +++ b/src/settings/data/RecipesSettings.ts @@ -1,7 +1,7 @@ import { HanayamaHuzzlesRecipeSettings } from 'src/recipes/hanayama_huzzles/settings/HanayamaHuzzlesRecipeSettings'; import { IQPuzzlesRecipeSettings } from 'src/recipes/iq_puzzles/settings/IQPuzzlesRecipeSettings'; -export interface RecipesPluginSettings { +export interface RecipesSettings { hanayamaHuzzles: HanayamaHuzzlesRecipeSettings; iqPuzzles: IQPuzzlesRecipeSettings; }