Comparing version 0.2.0-beta.18 to 0.2.0-beta.19
@@ -1,3 +0,4 @@ | ||
import { BasicModel, FieldSetModel, FieldModel, FieldArrayModel, FormModel, FieldSetValue } from './models'; | ||
import { BasicModel, FieldSetModel, FieldModel, FieldArrayModel, FormModel } from './models'; | ||
import { IValidator } from './validate'; | ||
import { FieldSetValue } from './utils'; | ||
export declare function field<T>(defaultValue: T, validators?: IValidator<T>[]): FieldModel<T>; | ||
@@ -4,0 +5,0 @@ export declare function set<Children>(children: Children, validators?: IValidator<FieldSetValue<Children>>[]): FieldSetModel<Children>; |
import { BehaviorSubject, Subject } from 'rxjs'; | ||
import { ValidateStrategy, IMaybeError } from './validate'; | ||
import { FieldSetValue } from './utils'; | ||
export declare enum FormStrategy { | ||
@@ -4,0 +5,0 @@ Model = 0, |
import { IMaybeError } from './validate'; | ||
import { FieldSetModel } from './models'; | ||
import { FieldSetModel, BasicModel } from './models'; | ||
export declare type FieldSetValue<Children> = { | ||
[key in keyof Children]: Children[key] extends BasicModel<any> ? Children[key]['$$value'] : never; | ||
}; | ||
/** | ||
@@ -4,0 +7,0 @@ * same algorithm as lodash.isPlainObject |
@@ -1,3 +0,4 @@ | ||
import { BasicModel, FieldSetModel, FieldModel, FieldArrayModel, FormModel, FieldSetValue } from './models'; | ||
import { BasicModel, FieldSetModel, FieldModel, FieldArrayModel, FormModel } from './models'; | ||
import { IValidator } from './validate'; | ||
import { FieldSetValue } from './utils'; | ||
export declare function field<T>(defaultValue: T, validators?: IValidator<T>[]): FieldModel<T>; | ||
@@ -4,0 +5,0 @@ export declare function set<Children>(children: Children, validators?: IValidator<FieldSetValue<Children>>[]): FieldSetModel<Children>; |
import { BehaviorSubject, Subject } from 'rxjs'; | ||
import { ValidateStrategy, IMaybeError } from './validate'; | ||
import { FieldSetValue } from './utils'; | ||
export declare enum FormStrategy { | ||
@@ -4,0 +5,0 @@ Model = 0, |
import { IMaybeError } from './validate'; | ||
import { FieldSetModel } from './models'; | ||
import { FieldSetModel, BasicModel } from './models'; | ||
export declare type FieldSetValue<Children> = { | ||
[key in keyof Children]: Children[key] extends BasicModel<any> ? Children[key]['$$value'] : never; | ||
}; | ||
/** | ||
@@ -4,0 +7,0 @@ * same algorithm as lodash.isPlainObject |
{ | ||
"name": "formulr", | ||
"version": "0.2.0-beta.18", | ||
"version": "0.2.0-beta.19", | ||
"description": "Form toolkit for React", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -1,3 +0,4 @@ | ||
import { BasicModel, FieldSetModel, FieldModel, FieldArrayModel, FormModel, FieldSetValue } from './models'; | ||
import { BasicModel, FieldSetModel, FieldModel, FieldArrayModel, FormModel } from './models'; | ||
import { IValidator } from './validate'; | ||
import { FieldSetValue } from './utils'; | ||
@@ -4,0 +5,0 @@ export function field<T>(defaultValue: T, validators: IValidator<T>[] = []) { |
import { BehaviorSubject, Observable, Subject } from 'rxjs'; | ||
import { IValidator, ValidateStrategy, IMaybeError } from './validate'; | ||
import { FieldSetValue } from './utils'; | ||
/** @internal */ | ||
export type FieldSetValue<Children> = { | ||
[key in keyof Children]: Children[key] extends BasicModel<any> ? Children[key]['$$value'] : never | ||
}; | ||
export enum FormStrategy { | ||
@@ -10,0 +6,0 @@ Model, |
import { IMaybeError } from './validate'; | ||
import { FieldSetModel } from './models'; | ||
import { FieldSetModel, BasicModel } from './models'; | ||
export type FieldSetValue<Children> = { | ||
[key in keyof Children]: Children[key] extends BasicModel<any> ? Children[key]['$$value'] : never | ||
}; | ||
/** | ||
@@ -5,0 +9,0 @@ * same algorithm as lodash.isPlainObject |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
204484
3527