sam-goodwin / punchcard

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

feat(shape): remove redundant carrying of a type's runtime type #46

Closed sam-goodwin closed 5 years ago

sam-goodwin commented 5 years ago
// replace this
class ArrayType<T extends Type<V>, V> implements Type<V[]>
// with
class ArrayType<T extends Type<any>> implements Type<RuntimeType<T>[]>

// it makes our types easier to work with. this:
ArrayType<StringType> = 
// instead of this:
ArrayType<StringType, string>