Skip to content

Commit 6271943

Browse files
committed
Resolve export conflict
1 parent 6c1cb35 commit 6271943

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

packages/playwright-crawler/src/internals/utils/rendering-type-prediction.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Request } from '@crawlee/core';
2-
import { type PersistenceOptions, RecoverableState } from '@crawlee/utils';
2+
import { RecoverableState,type RecoverableStatePersistenceOptions } from '@crawlee/utils';
33
import LogisticRegression from 'ml-logistic-regression';
44
import { Matrix } from 'ml-matrix';
55
import stringComparison from 'string-comparison';
@@ -34,7 +34,7 @@ type FeatureVector = [staticResultsSimilarity: number, clientOnlyResultsSimilari
3434
export interface RenderingTypePredictorOptions {
3535
/** A number between 0 and 1 that determines the desired ratio of rendering type detections */
3636
detectionRatio: number;
37-
persistenceOptions?: Partial<PersistenceOptions>;
37+
persistenceOptions?: Partial<RecoverableStatePersistenceOptions>;
3838
}
3939

4040
/**

packages/utils/src/internals/recoverable-state.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Configuration, EventType, KeyValueStore } from '@crawlee/core';
33
import type { Log } from '@apify/log';
44
import log from '@apify/log';
55

6-
export interface PersistenceOptions {
6+
export interface RecoverableStatePersistenceOptions {
77
/**
88
* The key under which the state is stored in the KeyValueStore
99
*/
@@ -30,7 +30,8 @@ export interface PersistenceOptions {
3030
/**
3131
* Options for configuring the RecoverableState
3232
*/
33-
export interface RecoverableStateOptions<TStateModel = Record<string, unknown>> extends PersistenceOptions {
33+
export interface RecoverableStateOptions<TStateModel = Record<string, unknown>>
34+
extends RecoverableStatePersistenceOptions {
3435
/**
3536
* The default state used if no persisted state is found.
3637
* A deep copy is made each time the state is used.

0 commit comments

Comments
 (0)