Skip to content

Very simple completions for using it with any type of variable.

License

Notifications You must be signed in to change notification settings

Hadevs/Completions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Completions

Very simple completions for using it with any type of variable. alt text

Examples

// 1.
let stringClosure: ItemClosure<String> = {
	value in
	print("This works: \(value)")
}

stringClosure("Hi")

//2.
func sendRequest(with completion: OptionalItemClosure<AnswerResponse>) {
  request { data in
		completion(try? AnswerResponse.from(data))
	}
}

sendRequest(with: {
  response in

})

About

Very simple completions for using it with any type of variable.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages