allow to check unknown objects for manifest type

This commit is contained in:
Jacob Overgaard
2023-02-23 16:24:49 +01:00
parent eb4511ba5a
commit 06c1a495a9

View File

@@ -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;
}