What a request decorator gives a builder that is given it by position:
what the request gives, A, where it may be made, P, and whether its type
is written, W, without which a builder cannot take it, since there is no
metadata to read the type from.
// @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(), );
What a request decorator gives a builder that is given it by position: what the request gives,
A, where it may be made,P, and whether its type is written,W, without which a builder cannot take it, since there is no metadata to read the type from.