Skip to content

Commit

Permalink
fix(benchmark): use namespace to import yup
Browse files Browse the repository at this point in the history
Use the namespace to import yup, since yup did not have a default export
and this caused `ts(1192)` errors.
  • Loading branch information
nakrovati committed Feb 14, 2024
1 parent b4c52f1 commit d6f5589
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion benchmarks/array.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-ignore
import Benchmark from 'benchmark'
import { z } from 'zod'
import yup from 'yup'
import * as yup from 'yup'
import vine from '../index.js'

function getData() {
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/flat_object.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-ignore
import Benchmark from 'benchmark'
import { z } from 'zod'
import yup from 'yup'
import * as yup from 'yup'
import vine from '../index.js'

function getData() {
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/nested_object.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-ignore
import Benchmark from 'benchmark'
import { z } from 'zod'
import yup from 'yup'
import * as yup from 'yup'
import vine from '../index.js'

function getData() {
Expand Down

0 comments on commit d6f5589

Please sign in to comment.