-
Notifications
You must be signed in to change notification settings - Fork 192
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
Introduce ModifierDefinitonState #843
Conversation
df35a7b
to
53a1a41
Compare
53a1a41
to
4eafd2c
Compare
@@ -6,3 +6,8 @@ export { | |||
ComponentDefinitionState, | |||
InternalComponentManager as ComponentManager, | |||
} from './component/interfaces'; | |||
|
|||
export { | |||
InernalModifierManager as ModifierManager, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/Inernal/Internal/
|
||
/* @internal */ | ||
export interface ModifierDefinition { | ||
manager: InernalModifierManager; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/Inernal/Internal/
} | ||
|
||
/* @internal */ | ||
export type InernalModifierManager = ModifierManager< |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/Inernal/Internal/
This introduces the notion of `ModifierDefinitionState`. The purpose of this state is to encapsulate values that are required for creation of the modifier. For instance the `ModifierDefinitionState` can contain the factory that backs a user defined modifier. This is not a new concept and is in fact why `ComponentDefintionState` exists. In the future there is opportunity to unify these ideas. This is the first step.
4eafd2c
to
7e56a9c
Compare
This introduces the notion of
ModifierDefinitionState
. The purpose of this stateis to encapsulate values that are required for creation of the modifier. For instance the
ModifierDefinitionState
can contain the factory that backs a user defined modifier. This is not a new concept and is in fact whyComponentDefinitionState
exists.In the future there is opportunity to unify these ideas. This is the first step.