allow to check unknown objects for manifest type
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { ManifestJSType } from './load-extension.function';
|
||||
import type { ManifestBase } from '@umbraco-cms/extensions-registry';
|
||||
|
||||
export function isManifestJSType(manifest: ManifestBase): manifest is ManifestJSType {
|
||||
export function isManifestJSType(manifest: ManifestBase | unknown): manifest is ManifestJSType {
|
||||
return (manifest as ManifestJSType).js !== undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user