Change rendering from id to type

This commit is contained in:
Meier Lukas
2023-03-30 21:54:44 +02:00
parent 66f9dd51dd
commit 43dc1cd70c
3 changed files with 9 additions and 7 deletions

View File

@@ -13,7 +13,8 @@ import { ShapeType } from '../types/shape';
// Type of widgets which are saved to config
export type IWidget<TKey extends string, TDefinition extends IWidgetDefinition> = {
id: TKey;
id: string;
type: TKey;
properties: {
[key in keyof TDefinition['options']]: MakeLessSpecific<
TDefinition['options'][key]['defaultValue']