sam-goodwin / punchcard

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

feat(shape): rename any to dynamic: Type<unknown> and add unsafeDynamic: Type<any> #45

Closed sam-goodwin closed 5 years ago

sam-goodwin commented 5 years ago

Rename any to dynamic and add unsafeDynamic type. Closes #45

dynamic is the safe version, where the runtime type is unknown.


// Queue<Type<unknown>>
const safeQueue = new SQS.Queue(,, {
  type: dynamic
});

unsafeDynamic is the unsafe version, where the runtime type is any.

// Queue<Type<any>>
const unsafeQueue = new SQS.Queue(,, {
  type: unsafeDynamic
});