react-input-material 0.0.406 → 0.0.409

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-input-material",
3
- "version": "0.0.406",
3
+ "version": "0.0.409",
4
4
  "description": "Reusable material design based input field with support for (richt-)text, code, selections, numbers, dates and so on.",
5
5
  "keywords": [
6
6
  "form-field",
package/type.d.ts CHANGED
@@ -185,9 +185,9 @@ export interface DataTransformSpecification<T = unknown, InputType = number | st
185
185
  export declare type InputDataTransformation = {
186
186
  boolean: DataTransformSpecification<boolean, number | string>;
187
187
  currency: DataTransformSpecification<number, string>;
188
- date: DataTransformSpecification<number, number | string>;
189
- 'datetime-local': DataTransformSpecification<number, number | string>;
190
- time: DataTransformSpecification<number, number | string>;
188
+ date: DataTransformSpecification<number, Date | number | string>;
189
+ 'datetime-local': DataTransformSpecification<number, Date | number | string>;
190
+ time: DataTransformSpecification<number, Date | number | string>;
191
191
  float: DataTransformSpecification<number, string>;
192
192
  integer: DataTransformSpecification<number, string>;
193
193
  number: DataTransformSpecification<number, number>;
@@ -267,7 +267,7 @@ export interface InputProperties<T = unknown> extends InputModelState, Propertie
267
267
  trailingIcon: string | (IconOptions & {
268
268
  tooltip?: string | TooltipProps;
269
269
  });
270
- transformer: RecursivePartial<DataTransformSpecification<T>>;
270
+ transformer: RecursivePartial<DataTransformSpecification<T, Date | number | string>>;
271
271
  }
272
272
  export declare type InputProps<T = unknown> = Partial<Omit<InputProperties<T>, 'model'>> & {
273
273
  model?: Partial<InputModel<T>>;