A request given to a builder by position, for a parameter of type T in
the place P: a request decorator, such as input("amount", integer),
whose type is written, which may be made there, and which gives what the
parameter accepts.
// @ts-expect-error the amount is a number, so it cannot be read as a string Charge.builder("charge").needs(input("amount", string));
assert.throws( // @ts-expect-error run takes two parameters, and each needs its request () =>Charge.builder("charge").run(service("payments", PAYMENT_GATEWAY)), /Charge.run: parameter 2 carries no request/, );
Orders.builder().inputAdapter( // @ts-expect-error payments provides a service, it does not supply an input "payments", { steps: ["charge"] }, stepName(), key(), );
A request given to a builder by position, for a parameter of type
Tin the placeP: a request decorator, such asinput("amount", integer), whose type is written, which may be made there, and which gives what the parameter accepts.