Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tobloef committed Jan 9, 2024
1 parent 964acc8 commit 8da862a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ const pickedBad2: Picked = {
},
}

type Required = DeepRequire<Test2, "foo2.bar2.baz2" | "foo2.bar1">;
type Require = DeepRequire<Test2, "foo2.bar2.baz2" | "foo2.bar1">;

const requiredGood1: Required = {
const requiredGood1: Require = {
foo2: {
bar1: "bar1",
bar2: [{
Expand All @@ -113,7 +113,7 @@ const requiredGood1: Required = {
}
}

const requiredGood2: Required = {
const requiredGood2: Require = {
foo1: "bar1",
foo2: {
bar1: "bar1",
Expand All @@ -127,11 +127,11 @@ const requiredGood2: Required = {
}

// @ts-expect-error
const requiredBad1: Required = {
const requiredBad1: Require = {
foo1: "bar1",
}

const requiredBad2: Required = {
const requiredBad2: Require = {
foo2: {
bar1: "bar1",
bar2: [
Expand Down

0 comments on commit 8da862a

Please sign in to comment.