Skip to content

Commit

Permalink
test: fixed typings test
Browse files Browse the repository at this point in the history
  • Loading branch information
alemagio committed Nov 12, 2020
1 parent 4e04035 commit cb890d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/index.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fastify from 'fastify'
import fastifyEnvalid, { Validators, CleanEnvFunction, StrictCleanEnvFunction } from '..'
import fastifyEnvalid, { Validators, CleanEnvFunction } from '..'
import { expectType } from 'tsd'
import { Spec, ValidatorSpec } from 'envalid'

Expand All @@ -9,7 +9,7 @@ try {
await app.ready()
await app.register(fastifyEnvalid)
expectType<Validators>(app.validators)
expectType<CleanEnvFunction|StrictCleanEnvFunction>(app.cleanEnv)
expectType<CleanEnvFunction>(app.cleanEnv)
expectType<<T>(
parser: (input: string) => T,
type?: string
Expand Down

0 comments on commit cb890d7

Please sign in to comment.