File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
packages/lib/services/plugins/api Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -177,11 +177,23 @@ export default class JoplinSettings {
177
177
}
178
178
179
179
/**
180
- * Gets a global setting value , including app-specific settings and those set by other plugins.
180
+ * Gets global setting values , including app-specific settings and those set by other plugins.
181
181
*
182
182
* The list of available settings is not documented yet, but can be found by looking at the source code:
183
183
*
184
- * https://github.com/laurent22/joplin/blob/dev/packages/lib/models/Setting.ts#L142
184
+ * https://github.com/laurent22/joplin/blob/dev/packages/lib/models/settings/builtInMetadata.ts
185
+ */
186
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
187
+ public async globalValues ( keys : string [ ] ) : Promise < any [ ] > {
188
+ const output : ( string | number | boolean ) [ ] = [ ] ;
189
+ for ( const key of keys ) {
190
+ output . push ( Setting . value ( key ) ) ;
191
+ }
192
+ return output ;
193
+ }
194
+
195
+ /**
196
+ * @deprecated Use joplin.settings.globalValues()
185
197
*/
186
198
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
187
199
public async globalValue ( key : string ) : Promise < any > {
You can’t perform that action at this time.
0 commit comments