frontend-plugin-api: swtich IconApi.listIconKeys to return an array direcly instead

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-01-18 17:32:48 +01:00
parent 1fa5041091
commit d2e576d55a
5 changed files with 7 additions and 11 deletions
@@ -32,7 +32,7 @@ export class DefaultIconsApi implements IconsApi {
return this.#icons.get(key);
}
listIconKeys: IconsApi['listIconKeys'] = () => {
return { keys: this.#icons.keys() };
};
listIconKeys(): string[] {
return Array.from(this.#icons.keys());
}
}
@@ -14,4 +14,4 @@
* limitations under the License.
*/
export { DefaultIconsApi } from './IconsApi';
export { DefaultIconsApi } from './DefaultIconsApi';