Last active
November 29, 2021 16:21
-
-
Save bendk/ce8c907118df51ac790e38322abfd397 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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