@types/ink-text-input
TypeScript icon, indicating that this package has built-in type declarations

2.0.5 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/ink-text-input

Weekly Downloads

180

Version

2.0.5

License

MIT

Unpacked Size

3.4 kB

Total Files

5

Last publish

Collaborators

  • types