mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
cast the type
This commit is contained in:
@@ -26,7 +26,9 @@ async function loadBundledExtensions(): Promise<BundledExtension[]> {
|
||||
if (bundledExtensionsOverride !== null) return bundledExtensionsOverride;
|
||||
|
||||
try {
|
||||
const distroExtensions = await window.electron.getDistroBundledExtensions();
|
||||
const distroExtensions = (await window.electron.getDistroBundledExtensions()) as
|
||||
| BundledExtension[]
|
||||
| null;
|
||||
if (distroExtensions) {
|
||||
bundledExtensionsOverride = distroExtensions;
|
||||
return distroExtensions;
|
||||
|
||||
Reference in New Issue
Block a user