@@ -181,7 +181,7 @@ declare module '@rjsf/core' {
181
181
readonly : boolean ;
182
182
key : string ;
183
183
} [ ] ;
184
- onAddClick : ( event : any ) => ( event : any ) => void ;
184
+ onAddClick : ( event ? : any ) => void ;
185
185
readonly : boolean ;
186
186
required : boolean ;
187
187
schema : JSONSchema7 ;
@@ -270,107 +270,107 @@ declare module '@rjsf/core' {
270
270
export module utils {
271
271
272
272
export const ADDITIONAL_PROPERTY_FLAG : string ;
273
-
273
+
274
274
export function getDefaultRegistry ( ) : FieldProps [ 'registry' ] ;
275
-
275
+
276
276
export function getSchemaType ( schema : JSONSchema7 ) : string ;
277
-
277
+
278
278
export function getWidget (
279
279
schema : JSONSchema7 ,
280
280
widget : Widget ,
281
281
registeredWidgets ?: { [ name : string ] : Widget } ,
282
282
) : Widget | Error ;
283
-
283
+
284
284
export function hasWidget (
285
285
schema : JSONSchema7 ,
286
286
widget : Widget ,
287
287
registeredWidgets ?: { [ name : string ] : Widget } ,
288
288
) : boolean ;
289
-
289
+
290
290
export function computeDefaults < T = any > (
291
291
schema : JSONSchema7 ,
292
292
parentDefaults : JSONSchema7 [ 'default' ] [ ] ,
293
293
definitions : FieldProps [ 'registry' ] [ 'definitions' ] ,
294
294
rawFormData ?: T ,
295
295
includeUndefinedValues ?: boolean ,
296
296
) : JSONSchema7 [ 'default' ] [ ] ;
297
-
297
+
298
298
export function getDefaultFormState < T = any > (
299
299
schema : JSONSchema7 ,
300
300
formData : T ,
301
301
definitions ?: FieldProps [ 'registry' ] [ 'definitions' ] ,
302
302
includeUndefinedValues ?: boolean ,
303
303
) : T | JSONSchema7 [ 'default' ] [ ] ;
304
-
304
+
305
305
export function getUiOptions ( uiSchema : UiSchema ) : UiSchema [ 'ui:options' ] ;
306
-
306
+
307
307
export function isObject ( thing : any ) : boolean ;
308
-
308
+
309
309
export function mergeObjects ( obj1 : object , obj2 : object , concatArrays ?: boolean ) : object ;
310
-
310
+
311
311
export function asNumber ( value : string | null ) : number | string | undefined | null ;
312
-
312
+
313
313
export function orderProperties ( properties : [ ] , order : [ ] ) : [ ] ;
314
-
314
+
315
315
export function isConstant ( schema : JSONSchema7 ) : boolean ;
316
-
316
+
317
317
export function toConstant ( schema : JSONSchema7 ) : JSONSchema7Type | JSONSchema7 [ 'const' ] | Error ;
318
-
318
+
319
319
export function isSelect ( _schema : JSONSchema7 , definitions ?: FieldProps [ 'registry' ] [ 'definitions' ] ) : boolean ;
320
-
320
+
321
321
export function isMultiSelect ( schema : JSONSchema7 , definitions ?: FieldProps [ 'registry' ] [ 'definitions' ] ) : boolean ;
322
-
322
+
323
323
export function isFilesArray (
324
324
schema : JSONSchema7 ,
325
325
uiSchema : UiSchema ,
326
326
definitions ?: FieldProps [ 'registry' ] [ 'definitions' ] ,
327
327
) : boolean ;
328
-
328
+
329
329
export function isFixedItems ( schema : JSONSchema7 ) : boolean ;
330
-
330
+
331
331
export function allowAdditionalItems ( schema : JSONSchema7 ) : boolean ;
332
-
332
+
333
333
export function optionsList ( schema : JSONSchema7 ) : { label : string ; value : string } [ ] ;
334
-
334
+
335
335
export function guessType ( value : any ) : JSONSchema7TypeName ;
336
-
336
+
337
337
export function stubExistingAdditionalProperties < T = any > (
338
338
schema : JSONSchema7 ,
339
339
definitions ?: FieldProps [ 'registry' ] [ 'definitions' ] ,
340
340
formData ?: T ,
341
341
) : JSONSchema7 ;
342
-
342
+
343
343
export function resolveSchema < T = any > (
344
344
schema : JSONSchema7Definition ,
345
345
definitions ?: FieldProps [ 'registry' ] [ 'definitions' ] ,
346
346
formData ?: T ,
347
347
) : JSONSchema7 ;
348
-
348
+
349
349
export function retrieveSchema < T = any > (
350
350
schema : JSONSchema7Definition ,
351
351
definitions ?: FieldProps [ 'registry' ] [ 'definitions' ] ,
352
352
formData ?: T ,
353
353
) : JSONSchema7 ;
354
-
354
+
355
355
export function deepEquals < T > ( a : T , b : T ) : boolean ;
356
-
356
+
357
357
export function shouldRender ( comp : React . Component , nextProps : any , nextState : any ) : boolean ;
358
-
358
+
359
359
export function toIdSchema < T = any > (
360
360
schema : JSONSchema7Definition ,
361
361
id : string ,
362
362
definitions : FieldProps [ 'registry' ] [ 'definitions' ] ,
363
363
formData ?: T ,
364
364
idPredix ?: string ,
365
365
) : IdSchema | IdSchema [ ] ;
366
-
366
+
367
367
export function toPathSchema < T = any > (
368
368
schema : JSONSchema7Definition ,
369
369
name : string | undefined ,
370
370
definitions : FieldProps [ 'registry' ] [ 'definitions' ] ,
371
371
formData ?: T ,
372
372
) : PathSchema | PathSchema [ ] ;
373
-
373
+
374
374
export interface DateObject {
375
375
year : number ;
376
376
month : number ;
@@ -379,25 +379,25 @@ declare module '@rjsf/core' {
379
379
minute : number ;
380
380
second : number ;
381
381
}
382
-
382
+
383
383
export function parseDateString ( dateString : string , includeTime ?: boolean ) : DateObject ;
384
-
384
+
385
385
export function toDateString ( dateObject : DateObject , time ?: boolean ) : string ;
386
-
386
+
387
387
export function pad ( num : number , size : number ) : string ;
388
-
388
+
389
389
export function setState ( instance : React . Component , state : any , callback : Function ) : void ;
390
-
390
+
391
391
export function dataURItoBlob ( dataURI : string ) : { name : string ; blob : Blob } ;
392
-
392
+
393
393
export interface IRangeSpec {
394
394
min ?: number ;
395
395
max ?: number ;
396
396
step ?: number ;
397
397
}
398
-
398
+
399
399
export function rangeSpec ( schema : JSONSchema7 ) : IRangeSpec ;
400
-
400
+
401
401
export function getMatchingOption (
402
402
formData : any ,
403
403
options : JSONSchema7 [ ] ,
@@ -430,4 +430,4 @@ declare module '@rjsf/core/lib/validate' {
430
430
additionalMetaSchemas ?: FormProps < T > [ 'additionalMetaSchemas' ] ,
431
431
customFormats ?: FormProps < T > [ 'customFormats' ] ,
432
432
) : { errors : AjvError [ ] ; errorSchema : ErrorSchema } ;
433
- }
433
+ }
0 commit comments