Skip to content

Commit ad92607

Browse files
committed
Add loading param to validation
1 parent 4ce0190 commit ad92607

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/validation.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ export function validateModal(modal: ReadyModal): never | void {
260260
eventCode,
261261
action,
262262
icon,
263+
loading,
263264
...otherParams
264265
} = modal
265266

@@ -295,6 +296,13 @@ export function validateModal(modal: ReadyModal): never | void {
295296
optional: true
296297
})
297298

299+
validateType({
300+
name: 'loading',
301+
value: loading,
302+
type: 'object',
303+
optional: true
304+
})
305+
298306
validateType({
299307
name: 'button',
300308
value: button,

0 commit comments

Comments
 (0)