From 2a9672394b5c7a553800cb844cd7465902e02d11 Mon Sep 17 00:00:00 2001 From: Nicolas Morel Date: Mon, 22 Apr 2024 14:05:31 +0200 Subject: [PATCH] fix: typings when using type module (#66) --- index.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 9a9b1f0..d82c534 100644 --- a/index.d.ts +++ b/index.d.ts @@ -6,6 +6,9 @@ declare function stringify( ): string; declare namespace stringify { + import _default = stringify; + export { _default as default }; + export function stable( value: any, replacer?: (key: string, value: any) => any, @@ -20,4 +23,4 @@ declare namespace stringify { ): string; } -export default stringify; +export = stringify;