mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-12 08:25:47 +01:00
✨ Change rendering from id to type
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user