Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): remove additionalProps from FormlyFieldProps interface #3295

Merged
merged 1 commit into from
May 14, 2022

Conversation

aitboudad
Copy link
Member

fix #3242

@netlify
Copy link

netlify bot commented May 14, 2022

Deploy Preview for formly-dev failed.

Name Link
🔨 Latest commit 8fd2465
🔍 Latest deploy log https://app.netlify.com/sites/formly-dev/deploys/62801a19e6460e000a68f8e3

@netlify
Copy link

netlify bot commented May 14, 2022

Deploy Preview for formly-dev failed.

Name Link
🔨 Latest commit 4efab25
🔍 Latest deploy log https://app.netlify.com/sites/formly-dev/deploys/62801b9a7ec8f50008a38183

@netlify
Copy link

netlify bot commented May 14, 2022

Deploy Preview for formly-dev ready!

Name Link
🔨 Latest commit 00cd0f5
🔍 Latest deploy log https://app.netlify.com/sites/formly-dev/deploys/62801c522b5139000aab7511
😎 Deploy Preview https://deploy-preview-3295--formly-dev.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@aitboudad aitboudad merged commit 05891df into ngx-formly:main May 14, 2022
@aitboudad aitboudad deleted the 3242 branch May 14, 2022 22:01
@@ -5,7 +5,7 @@ import { FieldWrapper } from '../templates/field.wrapper';
import { ValidationMessageOption } from '../models';
import { Type } from '@angular/core';

export interface FormlyFieldConfig {
export interface FormlyFieldConfig<Props = FormlyFieldProps & { [additionalProperties: string]: any }> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export interface FormlyFieldConfig<Props = FormlyFieldProps & { [additionalProperties: string]: any }> {
export interface FormlyFieldConfig<Props = FormlyFieldProps> {

Why does this again have the additionalProperties? I thought this should only be allowed on templateOptions.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FormlyFieldConfig should allow additionalProperties, to make it strict simply use FormlyFieldConfig<FormlyFieldProps>. You may check #3303 to have a clear idea for strict mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants