Skip to content

Importing InitFragment class and other types for Dependency within a plugin #18230

Closed Answered by alexander-akait
steverep asked this question in Q&A
Discussion options

You must be logged in to vote

How to import the InitFragment class (or is it not exposed?)

Feel free to send a PR and expose it 👍 because we already export Dependency, so it can be useful

How to import the DependencyTemplateContext type, which looks to be a prop of DependencyTemplate but I cannot find that either.

You can get it using dependencies.ModuleDependency.Template

Replies: 1 comment 20 replies

Comment options

You must be logged in to vote
20 replies
@steverep
Comment options

@steverep
Comment options

@steverep
Comment options

@steverep
Comment options

@alexander-akait
Comment options

Answer selected by steverep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants