Skip to content

Commit

Permalink
feat: export more ts definition (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
vagusX authored Mar 5, 2022
1 parent 973400b commit f132daf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions docs/examples/controlled.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import '../../assets/style.less';
import React from 'react';
import Segmented, { SegmentedValue } from 'rc-segmented';
import Segmented from 'rc-segmented';
import type { SegmentedValue } from 'rc-segmented';

export default class Demo extends React.Component<
{},
unknown,
{ value: SegmentedValue }
> {
state = {
Expand Down
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import omit from 'rc-util/lib/omit';

export type SegmentedValue = string | number;

type SegmentedRawOption = SegmentedValue;
export type SegmentedRawOption = SegmentedValue;

interface SegmentedLabeledOption {
export interface SegmentedLabeledOption {
className?: string;
disabled?: boolean;
label: React.ReactNode;
Expand Down

0 comments on commit f132daf

Please sign in to comment.