You've already forked joplin
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:
@@ -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> {
|
||||
|
Reference in New Issue
Block a user