mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 17:00:54 +01:00
* feat: update prettier configuration for print width * chore: apply code formatting to entire repository * fix: remove build files * fix: format issue --------- Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
15 lines
731 B
TypeScript
15 lines
731 B
TypeScript
import type { inferDefinitionType } from "./_definition";
|
|
import { createDefinition } from "./_definition";
|
|
|
|
export const backgroundImageAttachments = createDefinition(["fixed", "scroll"], { defaultValue: "fixed" });
|
|
export const backgroundImageRepeats = createDefinition(["repeat", "repeat-x", "repeat-y", "no-repeat"], {
|
|
defaultValue: "no-repeat",
|
|
});
|
|
export const backgroundImageSizes = createDefinition(["cover", "contain"], {
|
|
defaultValue: "cover",
|
|
});
|
|
|
|
export type BackgroundImageAttachment = inferDefinitionType<typeof backgroundImageAttachments>;
|
|
export type BackgroundImageRepeat = inferDefinitionType<typeof backgroundImageRepeats>;
|
|
export type BackgroundImageSize = inferDefinitionType<typeof backgroundImageSizes>;
|