Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/index.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,6 +5,7 @@ import TextArea from './TextArea';
export type {
AutoSizeType,
BaseInputProps,
CommonInputProps,
InputProps,
InputRef,
ResizableTextAreaRef,
Expand All@@ -14,6 +15,8 @@ export type {
export type { HolderRef } from './BaseInput';

export { default as ResizableTextArea } from './ResizableTextArea';
export { default as useCount } from './hooks/useCount';
export { resolveOnChange } from './utils/commonUtils';

export { BaseInput, TextArea };

Expand Down
12 changes: 12 additions & 0 deletions tests/rootExports.test.tsx
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
import type { CommonInputProps } from '../src';
import { resolveOnChange, useCount } from '../src';

describe('root exports', () => {
it('exposes helpers used by sibling input packages', () => {
const props: CommonInputProps = {};

expect(props).toEqual({});
expect(typeof useCount).toBe('function');
expect(typeof resolveOnChange).toBe('function');
});
});