pk (Superstruct adapter)
const pk: object;Defined in: adapters/superstruct.ts:23
Superstruct structs for Pakistani identifiers.
Type Declaration
Section titled “Type Declaration”Example
Section titled “Example”import { object, optional } from 'superstruct';import { pk } from 'pakdatakit/superstruct';
const form = object({ cnic: pk.cnic(), phone: optional(pk.phone()) });