UNPKG

@kilterset/auth0-actions-testing

Version:

Test and develop Auth0 Actions or Okta CIC Actions locally.

21 lines (17 loc) 374 B
declare global { namespace Chance { interface Chance { tzIdentifier: () => string; } } } /** * Returns an IANA time zone identifier (e.g. "Pacific/Auckland"). */ export const tzIdentifier = (chance: Chance.Chance) => { let values: string[] = []; while (!values.length) { values = chance.timezone().utc; } return chance.pickone(values); };