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

2.0.2 • 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

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

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: Thu, 08 Jul 2021 14:23:14 GMT
  • Dependencies: @types/ink
  • Global values: none

Credits

These definitions were written by Łukasz Ostrowski.

Keywords

none

Install

npm i @types/ink-text-input

DownloadsWeekly Downloads

46

Version

2.0.2

License

MIT

Unpacked Size

3.96 kB

Total Files

4

Last publish

Collaborators

  • types