CompletionFunc

typealias CompletionFunc = (<Error class: unknown class>?) -> String

Specifies the type of the function passed to g_completion_new(). It should return the string corresponding to the given target item. This is used when you use data structures as #GCompletion items.

  • param item the completion item.

  • return the string corresponding to the item.