Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/ui / src / forms / form / deps.d.ts
Size: Mime:
import { Serializable } from 'exotic';
import { InputState } from '../input/InputState';
import { GetInputValueType, InputStateComposedType } from '../input/typings';
import { KeyValueSpreadType, FormState } from './typings';
/**
 * === added these 4 fns to split out serializing ===
 */
export declare function toSerialized(serializable: Serializable): string;
export declare function fromInputToSpread(inputData: Serializable): KeyValueSpreadType;
export declare function fromInputToSerializable(input: InputStateComposedType, getInputValue: GetInputValueType): {}[] | InputStateComposedType;
/**
 * we pass getInputValue here because it's used as a recursive tail call
 * @see http://2ality.com/2015/06/tail-call-optimization.html
 */
export declare function fromInputToSerializedKeyValue(input: InputStateComposedType, getInputValue: GetInputValueType): KeyValueSpreadType;
/**
 * @todo -  this should be InputState.from
 * @description ensure the value is coerced to inputstate
 */
export declare function toInputState(input: InputStateComposedType, index?: number): InputState | InputStateComposedType;
/**
 * @todo split
 * @param {ObserverForm} instance
 */
export declare function toClassList(instance: any): any;
/**
 * @example
 * <label for='eh'>
 *    <?img /> to show an image instead of the input for custom styles
 *    <input id='eh'/>
 *    <span|div> children|text
 * </label>
 */
export declare const isInputState: (input: any) => boolean;
export declare function handleRecursive(state: FormState, index: number): void;
export declare function toInputStateAt(state: FormState, index: number): InputStateComposedType;