Skip to content

Commit

Permalink
publicly export and edit docs
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannzhou committed Aug 11, 2022
1 parent 99aa2b5 commit a9b9277
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export { VerticalSearchResponse } from './searchservice/response/VerticalSearchR
export { Snippet } from './searchservice/response/Snippet';
export { ErrorType } from './searchservice/response/ErrorType';
export { FailedVertical } from './searchservice/response/FailedVertical';
export { FieldType } from './searchservice/response/FieldType';

// Search service common models
export { Matcher } from './searchservice/common/Matcher';
Expand All @@ -78,3 +79,6 @@ export {
LowerNumberRangeLimit,
UpperNumberRangeLimit
} from './searchservice/common/NumberRangeValue';

// Utils
export { EnumOrLiteral } from './utils/EnumOrLiteral';
3 changes: 1 addition & 2 deletions src/models/searchservice/response/FieldType.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Type for value of DirectAnswer.
*
* Possible field types for {@link DirectAnswer.fieldType}.
* @public
*/
export enum FieldType {
Expand Down
5 changes: 5 additions & 0 deletions src/models/utils/EnumOrLiteral.ts
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
/**
* Produces a union type from the enum passed as a generic which consists of the enum values
* and the string literals of the enum.
* @public
*/
export type EnumOrLiteral<T extends string> = T | `${T}`;

0 comments on commit a9b9277

Please sign in to comment.