From 53755915e4e1a45048a952f0e364ca63ee0672f0 Mon Sep 17 00:00:00 2001 From: Gordon Date: Thu, 18 Oct 2018 09:11:18 -0500 Subject: [PATCH] Don't export some types that don't need to be exported --- types/react-instantsearch-core/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/react-instantsearch-core/index.d.ts b/types/react-instantsearch-core/index.d.ts index 72a607fbd0..d460ed6920 100644 --- a/types/react-instantsearch-core/index.d.ts +++ b/types/react-instantsearch-core/index.d.ts @@ -347,7 +347,7 @@ export interface AlgoliaError { statusCode: number; } -export type Omit = Pick>; +type Omit = Pick>; export type ConnectedComponentClass = React.ComponentClass & TExposedProps>; @@ -442,19 +442,19 @@ export type HighlightResult = { [K in keyof TDoc]: HighlightResultField } : never; -export type HighlightResultField = +type HighlightResultField = TField extends Array ? HighlightResultArray : TField extends string ? HighlightResultPrimitive : HighlightResult; -export type HighlightResultArray = +type HighlightResultArray = TItem extends string ? HighlightResultPrimitive[] : Array>; -export interface HighlightResultPrimitive { +interface HighlightResultPrimitive { /** the value of the facet highlighted (html) */ value: string; /** full, partial or none depending on how the query terms match */