3.0.5 • Published 6 months ago

@types/ink-select-input v3.0.5

Weekly downloads
422
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/ink-select-input

Summary

This package contains type definitions for ink-select-input (https://github.com/vadimdemedes/ink-select-input#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ink-select-input.

index.d.ts

// Type definitions for ink-select-input 3.0
// Project: https://github.com/vadimdemedes/ink-select-input#readme
// Definitions by: Łukasz Ostrowski <https://github.com/lukostry>
//                 Jakub Satnik <https://github.com/shatodj>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

import { Component } from 'react';

export interface ItemOfSelectInput {
    label: string;
    value: any;
    key?: string | number | undefined;
}

export interface SelectInputProps<T extends ItemOfSelectInput = ItemOfSelectInput> {
    focus?: boolean | undefined;
    indicatorComponent?: Component | undefined;
    itemComponent?: Component | undefined;
    items?: ReadonlyArray<T> | undefined;
    limit?: number | undefined;
    initialIndex?: number | undefined;
    onSelect?: ((item: T) => void) | undefined;
}

declare class SelectInput extends Component<SelectInputProps> { }

export default SelectInput;

Additional Details

  • Last updated: Thu, 08 Jul 2021 14:23:13 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by Łukasz Ostrowski, and Jakub Satnik.

3.0.4

6 months ago

3.0.3

7 months ago

3.0.2

8 months ago

3.0.5

6 months ago

3.0.1

3 years ago

3.0.0

5 years ago

2.0.0

5 years ago