-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
99 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
import Foundation | ||
|
||
extension Dictionary { | ||
func combinedWith(_ other: [Key: Value]) -> [Key: Value] { | ||
var dict = self | ||
for (key, value) in other { | ||
dict[key] = value | ||
} | ||
return dict | ||
} | ||
/** | ||
* - Fixme: ⚠️️ add doc | ||
* - Parameter other: - Fixme: ⚠️️ add doc | ||
* - Returns: - Fixme: ⚠️️ add doc | ||
*/ | ||
func combinedWith(_ other: [Key: Value]) -> [Key: Value] { | ||
var dict = self | ||
for (key, value) in other { | ||
dict[key] = value | ||
} | ||
return dict | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import Foundation | ||
/** | ||
* Protocol for structs types | ||
* - Fixme: ⚠️️ add more doc | ||
* - Fixme: ⚠️️ Rename to TMActionKind? or TMAction? | ||
* - Fixme: ⚠️️ probably remove params from json etc | ||
* - Fixme: ⚠️️ Probably remove params from json etc | ||
*/ | ||
public protocol ActionKind: Codable { | ||
var params: [String: String] { get } | ||
var output: [String: String] { get } | ||
var key: String { get } // - Fixme: ⚠️️ add doc | ||
var key: String { get } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.