import type { CSSProperties } from "../CSSProperties"; export type BorderRadiusLonghands = Required< Pick< CSSProperties, | "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomRightRadius" | "borderBottomLeftRadius" > >; export function borderRadius( all: NonNullable, ): BorderRadiusLonghands; export function borderRadius( topLeftAndBottomRight: NonNullable, topRightAndBottomLeft: NonNullable, ): BorderRadiusLonghands; export function borderRadius( topLeft: NonNullable, topRightAndBottomLeft: NonNullable, bottomRight: NonNullable, ): BorderRadiusLonghands; export function borderRadius( topLeft: NonNullable, topRight: NonNullable, bottomRight: NonNullable, bottomLeft: NonNullable, ): BorderRadiusLonghands; export function borderRadius( topLeft: NonNullable, topRight: NonNullable = topLeft, bottomRight: NonNullable = topLeft, bottomLeft: NonNullable = topRight, ): BorderRadiusLonghands { return { borderTopLeftRadius: topLeft, borderTopRightRadius: topRight, borderBottomRightRadius: bottomRight, borderBottomLeftRadius: bottomLeft, }; }