Skip to content

Commit d72c795

Browse files
fix(d.ts): avoid useless repetition for type
1 parent 44cf8b1 commit d72c795

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
type CommaSepValues<T> = T | `${T},${T}` | `${T},${T},${T}`;
1+
type SplitType = 'lines' | 'words' | 'chars' | 'lines,words' | 'lines,chars' | 'words,chars' | 'lines,words,chars';
22

33
export type SplitTextOptions = {
4-
type?: CommaSepValues<'lines' | 'words' | 'chars'>;
4+
type?: SplitType;
55
minLines?: number;
66
lineThreshold?: number;
77
noAriaLabel?: boolean;
@@ -11,7 +11,7 @@ export type SplitTextOptions = {
1111
};
1212

1313
export default class SplitText {
14-
constructor(element: HTMLElement, options?: SplitTextOptions): void;
14+
constructor(element: HTMLElement, options?: SplitTextOptions);
1515
split(): void;
1616
revert(): void;
1717
isSplit: boolean;

0 commit comments

Comments
 (0)