What is your feature request? Please describe.
Whenever I have a child component from FAST, I like to use the prop contract types FAST defines. For example for a text field, I would use TextFieldProps, which look like this:
export declare type TextFieldProps = ITextFieldHandledProps & ITextFieldUnhandledProps & ITextFieldManagedClasses;
Notice this type is composed of 3 types:
- ITextFieldHandledProps - all partial props
- ITextFieldUnhandledProps - all partial props
- ITextFieldManagedClasses - not a partial. managedClasses is a required property.
Describe the solution you'd like
Making IManagedClasses.managedClasses optional so that when I need to create the prop object for a component, I don't need to keep passing in managedClasses: undefined (this is really problematic in unit tests for example).
Describe alternatives you've considered
As a work-around I'm passing 'managedClasses: undefined' everywhere this crops up (usually in unit tests), but would love to clean up the code by removing that unnecessary part.
Additional context
N/A
What is your feature request? Please describe.
Whenever I have a child component from FAST, I like to use the prop contract types FAST defines. For example for a text field, I would use TextFieldProps, which look like this:
Notice this type is composed of 3 types:
Describe the solution you'd like
Making IManagedClasses.managedClasses optional so that when I need to create the prop object for a component, I don't need to keep passing in managedClasses: undefined (this is really problematic in unit tests for example).
Describe alternatives you've considered
As a work-around I'm passing 'managedClasses: undefined' everywhere this crops up (usually in unit tests), but would love to clean up the code by removing that unnecessary part.
Additional context
N/A