Cannot invoke 'asyncDataForType' with an argument list of type '(SiteRecord.Type, (_) -> Void)'
jeffery812 opened this issue · 2 comments
jeffery812 commented
What's wrong with my code, did I do something wrong?
let database = SwiftyDB(databaseName: "gogogo")
database.asyncDataForType(SiteRecord.self) { (result) -> Void in
}
/Users/zhihuitang/repo/ios/Letsgo/Letsgo/JSBridgeHandler.swift:32:18: Cannot invoke 'asyncDataForType' with an argument list of type '(SiteRecord.Type, (_) -> Void)'
Oyvindkg commented
Your code looks good to me. Does 'SiteRecord' implement the 'Storable' protocol?
jeffery812 commented
sorry, you are right. my Storable has some problem. thanks