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

Introduce ModifierDefinitonState #843

Merged
merged 1 commit into from
Aug 28, 2018
Merged

Introduce ModifierDefinitonState #843

merged 1 commit into from
Aug 28, 2018

Conversation

chadhietala
Copy link
Member

@chadhietala chadhietala commented Aug 20, 2018

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 ComponentDefinitionState exists.

In the future there is opportunity to unify these ideas. This is the first step.

@chadhietala chadhietala force-pushed the modifier-class branch 2 times, most recently from df35a7b to 53a1a41 Compare August 22, 2018 18:57
@chadhietala chadhietala changed the title [WIP] Introduce ModifierDefinitonState Introduce ModifierDefinitonState Aug 22, 2018
@@ -6,3 +6,8 @@ export {
ComponentDefinitionState,
InternalComponentManager as ComponentManager,
} from './component/interfaces';

export {
InernalModifierManager as ModifierManager,
Copy link
Contributor

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;
Copy link
Contributor

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<
Copy link
Contributor

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants