Skip to content

Commit

Permalink
add undefined as a return type
Browse files Browse the repository at this point in the history
  • Loading branch information
frenchbread committed Nov 13, 2021
1 parent ca39bc4 commit 230ab45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function ipv6_check (ip_addr: string) {
/^ff([0-9a-fA-F]{2,2}):/i.test(ip_addr)
}

export default (ip: string) => {
export default (ip: string): boolean | undefined => {
if (is_valid(ip)) {
const parsed = parse(ip)

Expand Down

0 comments on commit 230ab45

Please sign in to comment.