Skip to content

Commit 2e78b9f

Browse files
authored
Merge pull request #14 from oramasearch/feature/o-2941
Fix Orama Cloud type
2 parents 991584f + e5d752c commit 2e78b9f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/cloud.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import type { AnyObject, SearchParams, SearchResult } from './lib/types.ts'
22
import type { Index } from './collection.ts'
3+
import type { OramaCloudSearchParams } from './lib/types.ts'
34

45
import { CollectionManager } from './collection.ts'
56

6-
export type OramaCloudSearchParams = Omit<SearchParams, 'indexes'> & { datasources: string[] }
7-
87
export interface ProjectManagerConfig {
98
cluster?: {
109
writerURL?: string

src/lib/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export type SearchParams = {
8484
groupBy?: { properties: string[]; max_results?: number; sortBy?: GroupsSortBy }
8585
}
8686

87-
export type CloudSearchParams = Omit<SearchParams, 'indexes'> & { datasourceIDs?: string[] }
87+
export type OramaCloudSearchParams = Omit<SearchParams, 'indexes'> & { datasources?: string[] }
8888

8989
export type Hit<T = AnyObject> = {
9090
id: string

0 commit comments

Comments
 (0)