opral / inlang-paraglide-js

Tree-shakable i18n library build on the inlang ecosystem.
https://inlang.com/m/gerre34r/library-inlang-paraglideJs
54 stars 1 forks source link

remove type restrictions from the compiler #213

Closed samuelstroschein closed 1 month ago

samuelstroschein commented 2 months ago

Context

The mergeTypeRestrictions function tries to derive from variants what input types are expected.

/**
 * Attempts to merge type restrictions from two variants.
 */
export function mergeTypeRestrictions(

Proposal

Remove the typeRestrictions heuristic. Inputs will have a declared type in the future.

samuelstroschein commented 1 month ago

implemented