Module: typedefs
Interfaces
- Behavior
- CreateLaikaLinkOptions
- MatcherObject
- RecordingMarker
- RecordingPoint
- RecordingPointWithFixtureData
- RecordingPointWithFixtureMeta
- Result
- SubscribeMeta
Type Aliases
EventFilterFn
Ƭ EventFilterFn: (event
: RecordingElement
) => boolean
Type declaration
▸ (event
): boolean
Parameters
Name | Type |
---|---|
event | RecordingElement |
Returns
boolean
Defined in
InterceptorFn
Ƭ InterceptorFn: (operation
: Operation
, forward
: NextLink
) => Observable
<FetchResult
>
Type declaration
▸ (operation
, forward
): Observable
<FetchResult
>
Parameters
Name | Type |
---|---|
operation | Operation |
forward | NextLink |
Returns
Observable
<FetchResult
>
Defined in
ManInTheMiddleFn
Ƭ ManInTheMiddleFn: (options
: SubscribeMeta
) => Observable
<FetchResult
>
Type declaration
▸ (options
): Observable
<FetchResult
>
Parameters
Name | Type |
---|---|
options | SubscribeMeta |
Returns
Observable
<FetchResult
>
Defined in
Matcher
Ƭ Matcher: MatcherFn
| MatcherObject
Leave undefined if you want to intercept every operation, otherwise provide either a matcher function
or a matcher object
with properties like clientName
and/or a partial set of variables
that have to match for a given operation to be intercepted
Defined in
MatcherFn
Ƭ MatcherFn: (operation
: Operation
) => boolean
Type declaration
▸ (operation
): boolean
Parameters
Name | Type |
---|---|
operation | Operation |
Returns
boolean
Defined in
OnSubscribe
Ƭ OnSubscribe: (options
: SubscribeMeta
) => () => void
Type declaration
▸ (options
): () => void
Parameters
Name | Type |
---|---|
options | SubscribeMeta |
Returns
fn
▸ (): void
Returns
void
Defined in
OnSubscribeCallback
Ƭ OnSubscribeCallback: (options
: { observer
: FetchResultSubscriptionObserver
; operation
: Operation
; removeCallback
: () => void
}) => () => void
| void
Type declaration
▸ (options
): () => void
| void
Parameters
Name | Type |
---|---|
options | Object |
options.observer | FetchResultSubscriptionObserver |
options.operation | Operation |
options.removeCallback | () => void |
Returns
() => void
| void
Defined in
OperationObserverCallback
Ƭ OperationObserverCallback: (operation
: Operation
, observer
: FetchResultSubscriptionObserver
) => void
Type declaration
▸ (operation
, observer
): void
Parameters
Name | Type |
---|---|
operation | Operation |
observer | FetchResultSubscriptionObserver |
Returns
void
Defined in
PassthroughDisableFn
Ƭ PassthroughDisableFn: () => boolean
Type declaration
▸ (): boolean
Returns
boolean
Defined in
PassthroughEnableFn
Ƭ PassthroughEnableFn: (mitm?
: ManInTheMiddleFn
) => boolean
Type declaration
▸ (mitm?
): boolean
Parameters
Name | Type |
---|---|
mitm? | ManInTheMiddleFn |
Returns
boolean
Defined in
RecordingElement
Ƭ RecordingElement: RecordingMarker
| RecordingPoint
Defined in
RecordingElementWithFixtureData
Ƭ RecordingElementWithFixtureData: RecordingMarker
| RecordingPointWithFixtureData
Defined in
RecordingElementWithFixtureMeta
Ƭ RecordingElementWithFixtureMeta: RecordingMarker
| RecordingPointWithFixtureMeta
Defined in
Replacements
Ƭ Replacements: { key
: string
; value
: unknown
}[]
Defined in
ResultFn
Ƭ ResultFn: (operation
: Operation
) => Result
Type declaration
▸ (operation
): Result
Parameters
Name | Type |
---|---|
operation | Operation |
Returns
Defined in
ResultOrFn
Ƭ ResultOrFn: Result
| ResultFn