From 1a0c0d5bb16b9838567e49bfb405eaa6eda691bf Mon Sep 17 00:00:00 2001 From: Nightcycle <77173389+nightcycle@users.noreply.github.com> Date: Thu, 1 Aug 2024 15:08:56 -0400 Subject: [PATCH] Update Defaults.luau --- src/Component/Snackbar/Small/Defaults.luau | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/Component/Snackbar/Small/Defaults.luau b/src/Component/Snackbar/Small/Defaults.luau index f6e6853..62e26e6 100644 --- a/src/Component/Snackbar/Small/Defaults.luau +++ b/src/Component/Snackbar/Small/Defaults.luau @@ -24,9 +24,9 @@ type CanBeState = ColdFusion.CanBeState return { NEW = { TEXT = "", - BUTTON_TEXT = nil, - ON_BUTTON_CLICK = nil, - ON_CLOSE_CLICK = nil, + BUTTON_TEXT = nil :: string?, + ON_BUTTON_CLICK = nil :: ((() -> ())?), + ON_CLOSE_CLICK = nil :: ((() -> ())?), TEXT_COLOR = Color3.new(), BUTTON_TEXT_COLOR = Color3.new(), BACKGROUND_COLOR = Color3.new(), @@ -38,33 +38,33 @@ return { SURFACE_CONTAINER = { STYLE = Style.new(1, Enum.Font.SourceSans, "Light", Color3.new(0, 0.4, 0.7)), TEXT = "", - BUTTON_TEXT = nil, - ON_BUTTON_CLICK = nil, - ON_CLOSE_CLICK = nil, + BUTTON_TEXT = nil :: string?, + ON_BUTTON_CLICK = nil :: ((() -> ())?), + ON_CLOSE_CLICK = nil :: ((() -> ())?), ELEVATION = 0, }, PRIMARY_CONTAINER = { STYLE = Style.new(1, Enum.Font.SourceSans, "Light", Color3.new(0, 0.4, 0.7)), TEXT = "", - BUTTON_TEXT = nil, - ON_BUTTON_CLICK = nil, - ON_CLOSE_CLICK = nil, + BUTTON_TEXT = nil :: string?, + ON_BUTTON_CLICK = nil :: ((() -> ())?), + ON_CLOSE_CLICK = nil :: ((() -> ())?), ELEVATION = 0, }, SECONDARY_CONTAINER = { STYLE = Style.new(1, Enum.Font.SourceSans, "Light", Color3.new(0, 0.4, 0.7)), TEXT = "", - BUTTON_TEXT = nil, - ON_BUTTON_CLICK = nil, - ON_CLOSE_CLICK = nil, + BUTTON_TEXT = nil :: string?, + ON_BUTTON_CLICK = nil :: ((() -> ())?), + ON_CLOSE_CLICK = nil :: ((() -> ())?), ELEVATION = 0, }, TERTIARY_CONTAINER = { STYLE = Style.new(1, Enum.Font.SourceSans, "Light", Color3.new(0, 0.4, 0.7)), TEXT = "", - BUTTON_TEXT = nil, - ON_BUTTON_CLICK = nil, - ON_CLOSE_CLICK = nil, + BUTTON_TEXT = nil :: string?, + ON_BUTTON_CLICK = nil :: ((() -> ())?), + ON_CLOSE_CLICK = nil :: ((() -> ())?), ELEVATION = 0, }, }