1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-10 22:11:50 +02:00

Plugins: Undeprecate joplin.settings.value()

This commit is contained in:
Laurent Cozic
2025-05-01 23:14:22 +01:00
parent ae47667644
commit 3f364a4a9b

View File

@@ -159,9 +159,11 @@ export default class JoplinSettings {
}
/**
* @deprecated Use joplin.settings.values()
* Gets a setting value (only applies to setting you registered from your plugin).
*
* Gets a setting value (only applies to setting you registered from your plugin)
* Note: If you want to retrieve all your plugin settings, for example when the plugin starts,
* it is recommended to use the `values()` function instead - it will be much faster than
* calling `value()` multiple times.
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
public async value(key: string): Promise<any> {