fix(import): autofix missing sizes of items with grid-algorithm (#2522)

This commit is contained in:
Meier Lukas
2025-03-07 21:27:29 +01:00
committed by GitHub
parent 65f00f19de
commit d410af3402
6 changed files with 115 additions and 14 deletions

View File

@@ -4,4 +4,4 @@ export type { OldmarrApp, OldmarrIntegrationType } from "./app";
export type { OldmarrWidget, OldmarrWidgetKind } from "./widget";
export { oldmarrWidgetKinds } from "./widget";
export { boardSizes, getBoardSizeName } from "./tile";
export type { BoardSize } from "./tile";
export type { BoardSize, SizedShape } from "./tile";

View File

@@ -56,6 +56,8 @@ export const tileBaseSchema = z.object({
shape: shapeSchema,
});
export type SizedShape = z.infer<typeof sizedShapeSchema>;
export const boardSizes = objectKeys(shapeSchema._def.shape());
export type BoardSize = (typeof boardSizes)[number];