Skip to content

Commit c4ffc85

Browse files
Added Plugin Interface File (#885)
* Added Plugin Interface File * Update Sources/NodesGenerator/Resources/Stencils/PluginInterface.stencil Co-authored-by: Christopher Fuller <[email protected]> --------- Co-authored-by: Christopher Fuller <[email protected]>
1 parent 6d8d72e commit c4ffc85

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
//{{ file_header }}
2+
{% if plugin_interface_imports %}
3+
4+
{% for import in plugin_interface_imports %}
5+
import {{ import }}
6+
{% endfor %}
7+
{% endif %}
8+
9+
// This file defines the protocols and types in the plugin interface requiring public ACL for use in another module.
10+
11+
/// Dynamic state from the caller provided to the plugin to use in determining whether it is enabled.
12+
/// - NOTE: An alias to a tuple is supported.
13+
internal typealias {{ plugin_name }}PluginStateType = Void
14+
15+
{% if is_periphery_comment_enabled %}
16+
// periphery:ignore
17+
{% endif %}
18+
/// @mockable
19+
@MainActor
20+
internal protocol {{ plugin_name }}Plugin {
21+
func create() -> {{ plugin_name }}Builder?
22+
}

0 commit comments

Comments
 (0)