Update type casting
This commit is contained in:
parent
cb88f1faa9
commit
8c4bb89412
|
@ -7,7 +7,7 @@ export function createPluginsStore() {
|
|||
const { subscribe, set, update } = writable<Plugin[]>([])
|
||||
|
||||
async function load() {
|
||||
const plugins = (await API.getPlugins()) as Plugin[]
|
||||
const plugins: Plugin[] = await API.getPlugins()
|
||||
set(plugins)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue