Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
iamandrewluca committed Oct 11, 2024
1 parent 9ead1b4 commit 8f422fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const userMaskSettings: UserMask = {
@category Object
*/
export type Schema<ObjectType, ValueType, Options extends SchemaOptions = {}> = ObjectType extends string
export type Schema<ObjectType, ValueType, Options extends SchemaOptions = { recurseIntoArrays: true }> = ObjectType extends string

Check failure on line 40 in source/schema.d.ts

View workflow job for this annotation

GitHub Actions / Node.js 20

There should be no space after '{'.

Check failure on line 40 in source/schema.d.ts

View workflow job for this annotation

GitHub Actions / Node.js 20

There should be no space before '}'.

Check failure on line 40 in source/schema.d.ts

View workflow job for this annotation

GitHub Actions / Node.js 18

There should be no space after '{'.

Check failure on line 40 in source/schema.d.ts

View workflow job for this annotation

GitHub Actions / Node.js 18

There should be no space before '}'.

Check failure on line 40 in source/schema.d.ts

View workflow job for this annotation

GitHub Actions / Node.js 16

There should be no space after '{'.

Check failure on line 40 in source/schema.d.ts

View workflow job for this annotation

GitHub Actions / Node.js 16

There should be no space before '}'.
? ValueType
: ObjectType extends Map<unknown, unknown>
? ValueType
Expand Down
4 changes: 2 additions & 2 deletions test-d/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const foo = {
};

type FooOption = 'A' | 'B';
type FooSchema = Schema<typeof foo, FooOption>;
type FooSchema = Schema<typeof foo, FooOption, { recurseIntoArrays: false }>;

Check failure on line 27 in test-d/schema.ts

View workflow job for this annotation

GitHub Actions / Node.js 20

There should be no space after '{'.

Check failure on line 27 in test-d/schema.ts

View workflow job for this annotation

GitHub Actions / Node.js 20

There should be no space before '}'.

Check failure on line 27 in test-d/schema.ts

View workflow job for this annotation

GitHub Actions / Node.js 18

There should be no space after '{'.

Check failure on line 27 in test-d/schema.ts

View workflow job for this annotation

GitHub Actions / Node.js 18

There should be no space before '}'.

Check failure on line 27 in test-d/schema.ts

View workflow job for this annotation

GitHub Actions / Node.js 16

There should be no space after '{'.

Check failure on line 27 in test-d/schema.ts

View workflow job for this annotation

GitHub Actions / Node.js 16

There should be no space before '}'.

const fooSchema: FooSchema = {
baz: 'A',
Expand All @@ -37,7 +37,7 @@ const fooSchema: FooSchema = {
symbol: 'A',
map: 'A',
set: 'A',
array: 'A',
array: ['A'],
tuple: ['A'],
objectArray: [{key: 'A'}],
readonlyMap: 'A',
Expand Down

0 comments on commit 8f422fd

Please sign in to comment.