Input
/// API doc comment for eat
/// - Parameters:
/// - food: The food for the sloth to eat.
/// - quantity: The quantity of the food for the sloth to eat.
@JSfunc eat(_ food:String, quantity:Int)->Int{}Expected output (bridge-js.d.ts)
exporttypeExports={/** * API doc comment for eat * @param food The food for the sloth to eat. * @param quantity: The quantity of the food for the sloth to eat. */eat(food: string,quantity: number): number;}
Input
Expected output (
bridge-js.d.ts)