From bcd5154bdfd432d5d252d99340ca7837d6534ff1 Mon Sep 17 00:00:00 2001 From: Dimitrios Pappas Date: Wed, 10 Aug 2022 09:17:32 +0200 Subject: [PATCH] index.d.ts: make Options properties optional Otherwise you have to provide an object containing all properties, although _.defaults will overwrite any property that has not been set. --- index.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.d.ts b/index.d.ts index bae3eef..2e5e5b9 100644 --- a/index.d.ts +++ b/index.d.ts @@ -11,11 +11,11 @@ interface Chunk { readonly bytes: number; } interface Options { - readonly isHTML: boolean; - readonly languageHint: string; - readonly encodingHint: string; - readonly tldHint: string; - readonly httpHint: string; + readonly isHTML?: boolean; + readonly languageHint?: string; + readonly encodingHint?: string; + readonly tldHint?: string; + readonly httpHint?: string; } interface DetectLanguage { readonly reliable: boolean;