API reference@siftline/core/testingInterfaces
ScriptedClient
The only thing core asks of a client. Declared here, never imported from the SDK, so core publishes no dependency on it.
systemOne is a function-typed property, not a method: under strictFunctionTypes that
checks parameters contravariantly, so types.test-d.ts proving TypeSafeClient assignable
to this interface proves something. A method signature would be bivariant.
Extends
Properties
calls
readonly calls: readonly SystemOneRequest[];The requests received so far, in call order.
systemOne
systemOne: (request, options?) => Promise<SystemOneResult>;Parameters
| Parameter | Type |
|---|---|
request | SystemOneRequest |
options? | SystemOneCallOptions |
Returns
Promise<SystemOneResult>