Installation
npm install --save @types/ink-text-input
Summary
This package contains type definitions for ink-text-input (https://github.com/vadimdemedes/ink-text-input#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ink-text-input.
index.d.ts
import { Component } from "ink";
interface TextInputProps {
focus?: boolean | undefined;
onChange?: ((value: string) => void) | undefined;
onSubmit?: ((value: string) => void) | undefined;
placeholder?: string | undefined;
value?: string | undefined;
}
declare class TextInput extends Component<TextInputProps> {}
export = TextInput;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/ink
Credits
These definitions were written by Łukasz Ostrowski.