Skip to content

Conversation

@vitomanuguerrasoft
Copy link

Exposes the internal municipality (comuni) and province data as public exports to allow external usage for validation, mapping, and UI components.

Changes:

  • Add COMUNI_LIST export with user-friendly structure (belfioreCode, province, name, active)
  • Export PROVINCE mapping as static property on CodiceFiscale class
  • Add TypeScript definitions for IComuneData and IProvinceData interfaces
  • Support both CommonJS and ES6 module imports

This allows developers to:

  • Import data directly: import { COMUNI, PROVINCE } from 'codice-fiscale-js'
  • Access via class: CodiceFiscale.COMUNI and CodiceFiscale.PROVINCE
  • Reuse official municipality data without duplication
  • Build forms, selectors, and validation services with type safety

Fixes: Resolves feature request for exporting comuni and province data

🤖 Generated with Claude Code

Exposes the internal municipality (comuni) and province data as public exports to allow
external usage for validation, mapping, and UI components.

Changes:
- Add COMUNI_LIST export with user-friendly structure (belfioreCode, province, name, active)
- Export PROVINCE mapping as static property on CodiceFiscale class
- Add TypeScript definitions for IComuneData and IProvinceData interfaces
- Support both CommonJS and ES6 module imports

This allows developers to:
- Import data directly: import { COMUNI, PROVINCE } from 'codice-fiscale-js'
- Access via class: CodiceFiscale.COMUNI and CodiceFiscale.PROVINCE
- Reuse official municipality data without duplication
- Build forms, selectors, and validation services with type safety

Fixes: Resolves feature request for exporting comuni and province data

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant