Skip to content

Commit

Permalink
fix: spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
som-sm committed Dec 31, 2024
1 parent d7184be commit f332af5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/partial-deep.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ 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 {
languages: string[];
}
const partialSettings: PartialDeep<Settings, {recurseIntoArrays: true; allowUndefinedInNonTupleArrays: false}> = {
languages: [undefined] // Error
languages: [] // OK
languages: [undefined] // Error
languages: [] // OK
};
```
*/
Expand Down

0 comments on commit f332af5

Please sign in to comment.