Skip to content

Commit 52941d1

Browse files
committed
Revert
1 parent 82b9487 commit 52941d1

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Sources/CEExtensionKit/ExtensionInterface.swift

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,16 @@ import Foundation
99

1010
/// A protocol for extensions to conform to
1111
public protocol ExtensionInterface {
12-
init(extensionAPI: ExtensionAPI)
12+
}
13+
14+
open class ExtensionBuilder: NSObject {
15+
required public override init() {
16+
super.init()
17+
}
18+
19+
/// Builds extension with API
20+
/// - Parameter withAPI: the API implementation itself
21+
open func build(withAPI api: ExtensionAPI) -> ExtensionInterface {
22+
fatalError("You should override ExtensionBuilder.build")
23+
}
1324
}

0 commit comments

Comments
 (0)