mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* 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
10 lines
352 B
TypeScript
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]} />;
|
|
};
|