This file contains hidden or 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
protocol Method { | |
associatedtype ReturnType | |
static var name: String { get } | |
var parameters: [AnyObject]? { get } | |
} | |
extension METDDPClient { | |
func callMethod<T : Method>(method: T) -> Promise<T.ReturnType, MeteorError> { | |
return callMethodWithNamePromise(T.name, parameters: method.parameters) |
This file contains hidden or 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
MOVED TO: https://gist.github.com/tomasharkema/abe07e9394dcc6af5fbb0a665af7f4c8 |
This file contains hidden or 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
/** | |
* Oefening 2.2a - Formulier | |
*/ |
NewerOlder