From 5cb3350bac83037ff9403875eb000ee453162122 Mon Sep 17 00:00:00 2001 From: Universe Date: Mon, 18 Dec 2023 01:20:40 +0900 Subject: [PATCH] nullchecks --- packages/builder-css-styles/blur/index.ts | 2 +- packages/builder-css-styles/border-radius/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/builder-css-styles/blur/index.ts b/packages/builder-css-styles/blur/index.ts index 0a5eb3fc7..61bc8ce53 100644 --- a/packages/builder-css-styles/blur/index.ts +++ b/packages/builder-css-styles/blur/index.ts @@ -1,6 +1,6 @@ import { roundNumber } from "@reflect-ui/uiutils"; -export function blur(o?: number): string { +export function blur(o?: number): string | undefined { if (o === undefined) { return; } diff --git a/packages/builder-css-styles/border-radius/index.ts b/packages/builder-css-styles/border-radius/index.ts index a3d6508c3..b5ea9b17d 100644 --- a/packages/builder-css-styles/border-radius/index.ts +++ b/packages/builder-css-styles/border-radius/index.ts @@ -52,7 +52,7 @@ border-radius: unset; */ export function borderRadius( r: BorderRadiusManifest | undefined -): CSSProperties { +): CSSProperties | undefined { if (!r) { return; }