/ src / syntax / callable.js
callable.js
 1  // @ts-nocheck
 2  
 3  /**
 4   * @template {(...args: any[]) => any} F
 5   */
 6  export class Callable extends Function {
 7    /**
 8     * @param {F} invoke
 9     */
10    constructor(invoke) {
11      return Object.setPrototypeOf(invoke, new.target.prototype)
12    }
13  }