@mollie/api-client
Version:
Official Mollie API client for Node
23 lines (22 loc) • 707 B
TypeScript
import type Maybe from '../types/Maybe';
declare const prefixes: {
capture: string;
chargeback: string;
customer: string;
mandate: string;
order: string;
orderline: string;
organization: string;
payment: string;
'payment-link': string;
profile: string;
refund: string;
shipment: string;
subscription: string;
};
type ResourceKind = keyof typeof prefixes;
/**
* Asserts that the passed value is a well-formed identifier for the given resource as in 'this looks like it could be a valid identifier for this type of resource'.
*/
export default function assertWellFormedId(value: Maybe<string>, resource: ResourceKind): asserts value is string;
export {};