DefinitelyTyped/types/ink-spinner/ink-spinner-tests.tsx
Justin Anastos 4c06f5389e 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
2019-12-23 13:49:36 -06:00

10 lines
352 B
TypeScript

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,
// `allowSyntheticDefaultImports` flag in compiler options needs to be set to `true`
const Demo = () => {
return <Spinner type="line" rgb={[255, 255, 255]} />;
};