Resolve "Fix(Paypro): Paypro produces invalid declaration file"
This commit is contained in:
@@ -199,8 +199,8 @@ export class PayPro {
|
||||
// Expiry timestamp
|
||||
e: z.coerce.number().optional(),
|
||||
})
|
||||
// Allow any unspecified keys to be parsed as a string.
|
||||
.catchall(z.string())
|
||||
// Allow any unspecified keys to be parsed. This allows us to handle the unknown keys below.
|
||||
.loose()
|
||||
// Validate that any unknown keys are optional (prefixed with x-).
|
||||
.check(({ value }) => {
|
||||
const keys = Object.values(PayPro.ENCODING_KEYS);
|
||||
|
||||
Reference in New Issue
Block a user