tangramdotdev / packages

A collection of community maintained Tangram packages.
https://www.tangram.dev
MIT License
8 stars 2 forks source link

Use updated `tg.Args` #29

Closed deciduously closed 4 months ago

deciduously commented 6 months ago

Currently, packages pass optional additional arguments down to their respective build systems using a somewhat clunky pattern which includes the type tg.MaybeNestedArray<T>. Design and implement a cleaner strategy, and ensure this type does not appear in any top-level user-facing interface.

One strategy we briefly discussed was to split the tg.Args argument parsing step out from the actual build logic for each interface that employs the variadic argument pattern.