Skip to content

Commit

Permalink
fix: fixed default export and props type
Browse files Browse the repository at this point in the history
fix #4
  • Loading branch information
kierianlee committed Nov 11, 2022
1 parent 378d2fd commit e73f07f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 35 deletions.
17 changes: 0 additions & 17 deletions dist/index.d.ts

This file was deleted.

11 changes: 0 additions & 11 deletions dist/index.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/index.js.map

This file was deleted.

7 changes: 1 addition & 6 deletions src/AutowidthInput.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, {
DetailedHTMLProps,
InputHTMLAttributes,
CSSProperties,
useState,
Expand All @@ -10,11 +9,7 @@ import React, {
} from "react";
import { mergeRefs } from "react-merge-refs";

interface AutowidthInputProps
extends DetailedHTMLProps<
InputHTMLAttributes<HTMLInputElement>,
HTMLInputElement
> {
interface AutowidthInputProps extends InputHTMLAttributes<HTMLInputElement> {
extraWidth?: number | string;
minWidth?: number | string;
onAutosize?: (newWidth: number) => void;
Expand Down
3 changes: 3 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
import AutowidthInput from "./AutowidthInput";

export * from "./AutowidthInput";
export default AutowidthInput;

0 comments on commit e73f07f

Please sign in to comment.