Skip to content

Instantly share code, notes, and snippets.

@bendk
Last active November 29, 2021 16:21
Show Gist options
  • Save bendk/ce8c907118df51ac790e38322abfd397 to your computer and use it in GitHub Desktop.
Save bendk/ce8c907118df51ac790e38322abfd397 to your computer and use it in GitHub Desktop.
[bindings.swift.decorators.MyInterface]
import = "my.decorator.module"
class_name = "MyDecorator"
[bindings.swift.decorators.MyInterface.methods.catchAll]
# "{}" is replaced with the decorated function's return type.
# We'd need to do a bit of normalizing, like replacing "??" with "?".
return_type = "{}?"
# true means the decorator function throws, I think false should be the default and this could just be left out.
throws = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment