alef 0.24.13

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  /**
{% if doc %}
   * {{ doc }}
{% endif %}
   */
  {{ method_name }}({{ meta_sig }}): (fn: (...args: any[]) => any) => (...args: any[]) => any {
    return (fn: (...args: any[]) => any) => {
{% if has_meta %}
      this._app.{{ method_name }}({{ meta_args }}, fn);
{% else %}
      this._app.{{ method_name }}(fn);
{% endif %}
      return fn;
    };
  }