Skip to content

Commit

Permalink
fix: adjust const initializer in ambient context for compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
FajarKim committed Oct 25, 2024
1 parent fcb82d4 commit 8029081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ declare function dedent(text: string): string;
*/
declare function indent(text: string, prefix: string, predicate?: Predicate | null): string;

export const textwrap = { TextWrapper, wrap, fill, shorten, dedent, indent };
declare const textwrap: { TextWrapper: typeof TextWrapper; wrap: typeof wrap; fill: typeof fill; shorten: typeof shorten; dedent: typeof dedent; indent: typeof indent };

// Exports module
export { TextWrapper, wrap, fill, shorten, dedent, indent };
Expand Down

0 comments on commit 8029081

Please sign in to comment.