Skip to content
This repository has been archived by the owner on Nov 13, 2020. It is now read-only.

Cannot invoke 'asyncDataForType' with an argument list of type '(SiteRecord.Type, (_) -> Void)' #5

Closed
zhihuitang opened this issue Jan 30, 2016 · 2 comments

Comments

@zhihuitang
Copy link

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
Copy link
Owner

Your code looks good to me. Does 'SiteRecord' implement the 'Storable' protocol?

@zhihuitang
Copy link
Author

sorry, you are right. my Storable has some problem. thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants