From f332af5db86f93e62349c351b4372b37ed042700 Mon Sep 17 00:00:00 2001 From: Som Shekhar Mukherjee Date: Tue, 31 Dec 2024 11:06:46 +0530 Subject: [PATCH] fix: spacing --- source/partial-deep.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/partial-deep.d.ts b/source/partial-deep.d.ts index a9fbb85ad..1450287a8 100644 --- a/source/partial-deep.d.ts +++ b/source/partial-deep.d.ts @@ -12,11 +12,11 @@ export type PartialDeepOptions = { readonly recurseIntoArrays?: boolean; /** - Allows undefined values in non-tuple arrays. When set to `true`, elements of non-tuple arrays can be `undefined`. When set to `false`, only explicitly defined elements are allowed in non-tuple arrays, ensuring stricter type checking. Defaults to `true` if not specified. + Allows undefined values in non-tuple arrays. When set to `true`, elements of non-tuple arrays can be `undefined`. When set to `false`, only explicitly defined elements are allowed in non-tuple arrays, ensuring stricter type checking. Defaults to `true` if not specified. - @default true - @example - You can prevent undefined values in non tuple arrays by passing `{recurseIntoArrays: true; allowUndefinedInNonTupleArrays: false}` as the second type argument: + @default true + @example + You can prevent undefined values in non tuple arrays by passing `{recurseIntoArrays: true; allowUndefinedInNonTupleArrays: false}` as the second type argument: ``` interface Settings { @@ -24,8 +24,8 @@ interface Settings { } const partialSettings: PartialDeep = { - languages: [undefined] // Error - languages: [] // OK + languages: [undefined] // Error + languages: [] // OK }; ``` */