Skip to content

Commit 84536c3

Browse files
committed
use alias types
1 parent 7b6fbc6 commit 84536c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

specification/_types/Retriever.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { Sort, SortResults } from '@_types/sort'
2222
import { FieldCollapse } from '@global/search/_types/FieldCollapse'
2323
import { Rescore } from '@global/search/_types/rescoring'
2424
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
25-
import { Id } from './common'
25+
import {Id, IndexName} from './common'
2626
import { QueryContainer } from './query_dsl/abstractions'
2727

2828
/**
@@ -91,8 +91,8 @@ export enum ScoreNormalizer {
9191
}
9292

9393
export class SpecifiedDocument {
94-
index?: string
95-
id: string
94+
index?: IndexName
95+
id: Id
9696
}
9797

9898
export class StandardRetriever extends RetrieverBase {

0 commit comments

Comments
 (0)