UNPKG
@fnzc/nz-ird-validator
Version:
latest (1.1.0)
1.1.0
1.0.5
1.0.4
1.0.3
1.0.1
1.0.0
Validates New Zealand tax numbers (IRD)
github.com/fnzc/nz-ird-validator
fnzc/nz-ird-validator
@fnzc/nz-ird-validator
/
index.d.ts
8 lines
(5 loc)
•
232 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
export
function
isValidIRDNumber
(
irdNumber
:
string
):
boolean
interface
ValidationOptions
{
requireFormat
:
'dashes'
|
'numeric'
|
'either'
}
export
function
configureValidator
(
options
:
ValidationOptions
):
typeof
isValidIRDNumber