ink-spinner: replace Component imported from ink with Component imported from react (#41009)

* fix(ink-spinner): Replace `Component` from `ink` with `React`

fixup! fix(ink-spinner): Replace `Component` from `ink` with `react`

* add myself to definitions by for ink-spinner
This commit is contained in:
Justin Anastos
2019-12-23 13:49:36 -06:00
committed by Andrew Branch
parent 3615bdb3ce
commit 4c06f5389e
2 changed files with 4 additions and 5 deletions
+3 -3
View File
@@ -1,12 +1,12 @@
// Type definitions for ink-spinner 2.0
// Project: https://github.com/vadimdemedes/ink-spinner#readme
// Definitions by: Łukasz Ostrowski <https://github.com/lukostry>
// Definitions by: Łukasz Ostrowski <https://github.com/lukostry>, Justin Anastos <https://github.com/justinanastos>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import { Chalk } from 'chalk';
import * as cliSpinners from 'cli-spinners';
import { Component } from 'ink';
import { Component } from 'react';
type StringifyPartial<T> = {
[P in keyof T]?: string;
@@ -34,6 +34,6 @@ type ChalkProps = BooleansPartial<ChalkCommons>
& StringifyPartial<ChalkKeywordsAndHexes>
& TupleOfNumbersPartial<ChalkColorModels>;
declare class Spinner extends Component<SpinnerProps & ChalkProps> { }
declare class Spinner extends Component<SpinnerProps & ChalkProps> {}
export = Spinner;
+1 -2
View File
@@ -1,5 +1,4 @@
/** @jsx h */
import { h } from 'ink';
import React from 'react';
import Spinner from 'ink-spinner';
// NOTE: `import Spinner = require('ink-spinner');` will work as well.
// If importing using ES6 default import as above,