<commit_before>// Type definitions for angular-formly 7.2.3
// Project: https://github.com/formly-js/angular-formly
// Definitions by: <NAME> <https://github.com/scatcher>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference path="../angularjs/angular.d.ts" />

declare module 'AngularFormly' {
	export = AngularFormly;
}

declare module 'angular-formly' {
	var angularFormlyDefaultExport: string;
	export = angularFormlyDefaultExport;
}

declare module AngularFormly {

    interface IFieldArray extends Array<IFieldConfigurationObject | IFieldGroup> {

    }

	interface IFieldGroup {
		data?: Object;
		className?: string;
		elementAttributes?: string;
        fieldGroup?: IFieldArray;
		form?: Object;
		hide?: boolean;
		hideExpression?: string | IExpressionFunction;
		key?: string | number;
		model?: string | Object;
        options?: IFormOptionsAPI;
        templateOptions?: ITemplateOptions;
        wrapper?: string | string[];
	}


	interface IFormOptionsAPI {
		data?: Object;
		fieldTransform?: Function;
		formState?: Object;
		removeChromeAutoComplete?: boolean;
		resetModel?: Function;
		templateManipulators?: ITemplateManipulators;
		updateInitialValue?: Function;
		wrapper?: string | string[];
	}


	/**
	 * see http://docs.angular-formly.com/docs/formly-expressions#expressionproperties-validators--messages
	 */
	interface IExpressionFunction {
		($viewValue: any, $modelValue: any, scope: ITemplateScope): any;
	}


	interface IModelOptions {
		updateOn?: string;
		debounce?: number;
		allowInvalid?: boolean;
		getterSetter?: string;
		timezone?: string;
	}


	interface ITemplateManipulator {
		(template: string | HTMLElement, options: Object, scope: ITemplateScope): string | HTMLElement;
	}


	interface ITemplateManipulators {
		preWrapper?: ITemplateManipulator[];
		postWrapper?: ITemplateManipulator[];
	}

	interface ISelectOption {
		name: string;
		value?: string;
		group?: string;
	}

	/**
	 * see http://docs.angular-formly.com/docs/ngmodelattrstemplatemanipulator
	 */
	interface ITemplateOptions {

		// both attribute or regular attribute
		disabled?: boolean;
		maxlength?: number;
		minlength?: number;
		pattern?: string;
		required?: boolean;

		//attribute only
		max?: number;
		min?: number;
		placeholder?: number | string;
		tabindex?: number;
		type?: string;

		//expression types
		onBlur?: string;
		onChange?: string;
		onClick?: string;
		onFocus?: string;
		onKeydown?: string;
		onKeypress?: string;
		onKeyup?: string;

		//Bootstrap types
		label?: string;
		description?: string;
		[key: string]: any;

		// types for select/radio fields
		options?: Array<ISelectOption>;<commit_msg>Change ITemplateOptions.{onClick, etc.} to union<commit_after>// Type definitions for angular-formly 7.2.3
// Project: https://github.com/formly-js/angular-formly
// Definitions by: <NAME> <https://github.com/scatcher>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference path="../angularjs/angular.d.ts" />

declare module 'AngularFormly' {
	export = AngularFormly;
}

declare module 'angular-formly' {
	var angularFormlyDefaultExport: string;
	export = angularFormlyDefaultExport;
}

declare module AngularFormly {

    interface IFieldArray extends Array<IFieldConfigurationObject | IFieldGroup> {

    }

	interface IFieldGroup {
		data?: Object;
		className?: string;
		elementAttributes?: string;
        fieldGroup?: IFieldArray;
		form?: Object;
		hide?: boolean;
		hideExpression?: string | IExpressionFunction;
		key?: string | number;
		model?: string | Object;
        options?: IFormOptionsAPI;
        templateOptions?: ITemplateOptions;
        wrapper?: string | string[];
	}


	interface IFormOptionsAPI {
		data?: Object;
		fieldTransform?: Function;
		formState?: Object;
		removeChromeAutoComplete?: boolean;
		resetModel?: Function;
		templateManipulators?: ITemplateManipulators;
		updateInitialValue?: Function;
		wrapper?: string | string[];
	}


	/**
	 * see http://docs.angular-formly.com/docs/formly-expressions#expressionproperties-validators--messages
	 */
	interface IExpressionFunction {
		($viewValue: any, $modelValue: any, scope: ITemplateScope): any;
	}


	interface IModelOptions {
		updateOn?: string;
		debounce?: number;
		allowInvalid?: boolean;
		getterSetter?: string;
		timezone?: string;
	}


	interface ITemplateManipulator {
		(template: string | HTMLElement, options: Object, scope: ITemplateScope): string | HTMLElement;
	}


	interface ITemplateManipulators {
		preWrapper?: ITemplateManipulator[];
		postWrapper?: ITemplateManipulator[];
	}

	interface ISelectOption {
		name: string;
		value?: string;
		group?: string;
	}

	/**
	 * see http://docs.angular-formly.com/docs/ngmodelattrstemplatemanipulator
	 */
	interface ITemplateOptions {

		// both attribute or regular attribute
		disabled?: boolean;
		maxlength?: number;
		minlength?: number;
		pattern?: string;
		required?: boolean;

		//attribute only
		max?: number;
		min?: number;
		placeholder?: number | string;
		tabindex?: number;
		type?: string;

		//expression types
		onBlur?: string | IExpresssionFunction;
		onChange?: string | IExpresssionFunction;
		onClick?: string | IExpresssionFunction;
		onFocus?: string | IExpresssionFunction;
		onKeydown?: string | IExpresssionFunction;
		onKeypress?: string | IExpresssionFunction;
		onKeyup?: string | IExpresssionFunction;

		//Bootstrap types
		label?: string;
		description?: string;
		[key: string]: any;

		// types for select/radio fields
		options?: Array<ISelectOption>;
{'fraction_non_alphanumeric': 0.11987041036717062, 'fraction_numerical': 0.0010799136069114472, 'mean_word_length': 4.307545367717288, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5375810', 'n_tokens_mistral': 1817, 'n_tokens_neox': 1673, 'n_words': 404}