mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Do not use default export
This commit is contained in:
parent
f5f34f814e
commit
040acad434
6
types/ink-text-input/index.d.ts
vendored
6
types/ink-text-input/index.d.ts
vendored
@ -6,7 +6,7 @@
|
||||
|
||||
import { Component } from 'ink';
|
||||
|
||||
export interface TextInputProps {
|
||||
interface TextInputProps {
|
||||
focus?: boolean;
|
||||
onChange?: (value: string) => void;
|
||||
onSubmit?: (value: string) => void;
|
||||
@ -14,4 +14,6 @@ export interface TextInputProps {
|
||||
value?: string;
|
||||
}
|
||||
|
||||
export default class TextInput extends Component<TextInputProps> { }
|
||||
declare class TextInput extends Component<TextInputProps> { }
|
||||
|
||||
export = TextInput;
|
||||
|
||||
@ -1,6 +1,9 @@
|
||||
/** @jsx h */
|
||||
import { h, Component } from 'ink';
|
||||
import TextInput from 'ink-text-input';
|
||||
// NOTE: `import TextInput = require('ink-text-input');` will work as well
|
||||
// For importing using ES6 default import as above,
|
||||
// `allowSyntheticDefaultImports` flag in compiler options needs to be set to `true`
|
||||
|
||||
interface QueryState {
|
||||
query: string;
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"jsx": "react",
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user