@algolia/satellite
Advanced tools
Comparing version 1.0.0-beta.37 to 1.0.0-beta.38
@@ -26,5 +26,5 @@ import React from "react"; | ||
noResultsLabel?: string; | ||
createFromInputValue?: CreateFromInputValue<Option>; | ||
createFromInputValue?: CreateFromInputValue; | ||
separatorKeyCodes?: number[]; | ||
renderValueTemplate?: (args: RenderValueTemplateArgs<Option>) => JSX.Element; | ||
renderValueTemplate?: (args: RenderValueTemplateArgs) => JSX.Element; | ||
renderOption?: (option: Option, params: OptionRendererParams) => React.ReactNode; | ||
@@ -45,3 +45,3 @@ } | ||
noResultsLabel: string; | ||
createFromInputValue: CreateFromInputValue<Option>; | ||
createFromInputValue: CreateFromInputValue; | ||
options: never[]; | ||
@@ -48,0 +48,0 @@ separatorKeyCodes: never[]; |
@@ -15,8 +15,8 @@ declare type OptionsValue = string | number | boolean; | ||
} | ||
export interface RenderValueTemplateArgs<T extends Option> { | ||
option: T; | ||
export interface RenderValueTemplateArgs { | ||
option: Option; | ||
key: string; | ||
editable: boolean; | ||
} | ||
export declare type CreateFromInputValue<T> = (options: T[] | undefined, inputValue: string) => T[]; | ||
export declare type CreateFromInputValue = (options: Option[] | undefined, inputValue: string) => Option[]; | ||
export {}; |
@@ -1,3 +0,3 @@ | ||
import { Option, CreateFromInputValue } from "./types"; | ||
export declare const defaultCreateFromInputValue: CreateFromInputValue<Option>; | ||
export declare const caseInsensitiveCreateFromInputValue: CreateFromInputValue<Option>; | ||
import { CreateFromInputValue } from "./types"; | ||
export declare const defaultCreateFromInputValue: CreateFromInputValue; | ||
export declare const caseInsensitiveCreateFromInputValue: CreateFromInputValue; |
{ | ||
"name": "@algolia/satellite", | ||
"version": "1.0.0-beta.37", | ||
"version": "1.0.0-beta.38", | ||
"description": "Algolia design system React components", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
5166638