Skip to content

Commit

Permalink
fix value type to unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
AnastasiiaSvietlova committed Nov 26, 2024
1 parent 799b4cf commit 8d6f114
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-client-ip/src/client-ip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface ExtendedPlugin extends Plugin {
}

interface ValidationOption {
validate: (value: boolean) => boolean
validate: (value: unknown) => boolean
defaultValue: () => unknown
message: string
}
Expand All @@ -38,7 +38,7 @@ const plugin: ExtendedPlugin = {
collectUserIp: {
defaultValue: () => true,
message: 'should be true|false',
validate: (value: boolean) => value === true || value === false
validate: (value: unknown) => value === true || value === false
}
}
}
Expand Down

0 comments on commit 8d6f114

Please sign in to comment.