From 802908183d0850c88a41424a9b59a62cd809ac5b Mon Sep 17 00:00:00 2001 From: Rangga Fajar Oktariansyah <86386385+FajarKim@users.noreply.github.com> Date: Fri, 25 Oct 2024 18:24:21 +0700 Subject: [PATCH] fix: adjust const initializer in ambient context for compatibility --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 6dae9c3..2c1b5c1 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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 };