comment for the property kind undefined

This commit is contained in:
Niels Lyngsø
2023-03-17 18:52:34 +01:00
parent 0003847115
commit b652bbd70e

View File

@@ -103,7 +103,7 @@ export type SpecificManifestTypeOrManifestBase<T extends keyof ManifestTypeMap |
export interface ManifestBase {
type: string;
alias: string;
kind?: undefined;
kind?: undefined; // I had to add the optional kind property set to undefined. To make the ManifestTypes recognize the Manifest Kind types. Notice that Kinds has to Omit the kind property when extending.
name: string;
weight?: number;
}
@@ -143,11 +143,6 @@ export interface ManifestElement extends ManifestWithLoader<object | HTMLElement
meta?: unknown;
}
export interface ManifestElementCustomKind extends ManifestElement {
kind: 'custom';
meta?: unknown;
}
export interface ManifestWithView extends ManifestElement {
meta: MetaManifestWithView;
}