Skip to content

Commit

Permalink
fix(schema): fix errors from strict typing
Browse files Browse the repository at this point in the history
  • Loading branch information
mantariksh committed Sep 14, 2020
1 parent 7533b88 commit afe1732
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/types/vendor/convict-format-with-validator.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,21 @@ declare module 'convict-format-with-validator' {
function coerce(v): string
function validate(x): void

const url = {
export const url = {
name: 'url' as const,
coerce,
validate,
}

const ipaddress = {
export const ipaddress = {
name: 'ipaddress' as const,
coerce,
validate,
}

const email = {
export const email = {
name: 'email' as const,
coerce,
validate,
}

export default {
url,
ipaddress,
email,
}
}

0 comments on commit afe1732

Please sign in to comment.