mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
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:
committed by
Andrew Branch
parent
3615bdb3ce
commit
4c06f5389e
Vendored
+3
-3
@@ -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,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,
|
||||
|
||||
Reference in New Issue
Block a user