Skip to content

feat: define pricing types and interfaces#10

Merged
lukTS merged 2 commits into
mainfrom
feat/pricing-types
May 16, 2026
Merged

feat: define pricing types and interfaces#10
lukTS merged 2 commits into
mainfrom
feat/pricing-types

Conversation

@lukTS
Copy link
Copy Markdown
Owner

@lukTS lukTS commented May 16, 2026

What

Define TypeScript types and interfaces for the pricing engine.

Changes

  • PricingRuleConfig — single pricing rule (name, type, unitPrice, unit, minCharge)
  • CalculationDimensions — width and height for area calculation
  • CalculationInput — input for the calculate method
  • CalculationResult — output with area, subtotal, total
  • PricingEngineConfig — top-level config with rules array
  • JSDoc comments on all types and fields
  • Re-export from packages/core/src/index.ts

Closes #4

lukTS added 2 commits May 16, 2026 12:31
- PricingRuleConfig (name, type, unitPrice, unit, minCharge)
- CalculationDimensions (width, height)
- CalculationInput (rule, dimensions, quantity)
- CalculationResult (rule, area, unitPrice, subtotal, quantity, total)
- PricingEngineConfig (rules array)

#4
@lukTS lukTS added this to the v0.1.0 milestone May 16, 2026
@lukTS lukTS self-assigned this May 16, 2026
@lukTS lukTS added the enhancement New feature or request label May 16, 2026
@lukTS lukTS merged commit f7c7021 into main May 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: define pricing types and interfaces

1 participant