sam-goodwin / punchcard

Type-safe AWS infrastructure.
Apache License 2.0
507 stars 20 forks source link

use module augmentation for shape-derived DSL #11

Open sam-goodwin opened 5 years ago

sam-goodwin commented 5 years ago

The Type interface is tightly-coupled to derived DSLs like DynamoPath, JsonPath, etc.

Can we inject these with module augmentation so shapes can be extended to support new domains?

https://github.com/sam-goodwin/punchcard/blob/d866672ccd1adf60ed18a75f119745a4f3fde03a/packages/punchcard/lib/shape/types/type.ts#L5-L17