pulumi/sdk/nodejs/runtime
joeduffy a1ab56fc28 Prettify properties
This change makes a few simplifications to how properties are exposed in
the system, mostly in the name of usability, but also to feel a bit more
like "idiomatic JavaScript".  Namely:

* Rename `then` to `mapValue`.  This hopefully helps to suggest that this
  is meant for a dataflow style of programming.

* Move Property<T> into the runtime module, and remove PropertyState<T>,
  collapsing back down to a single type.  This also eliminates some of the
  messy internal runtime casting, accessing of internal members, etc.

* Export a Computed<T> interface from the root of the module.  This is
  the entirety of the public-facing surface area for properties, and
  exposes that single `mapValue` member function.  The internal runtime
  logic understands how to handle Property<T>s specifically in addition
  to Computed<T>s more generally (in case someone writes their own).
2017-09-05 10:55:09 -07:00
..
native Reject all but Node.js 6.10.x 2017-09-05 10:08:20 -07:00
closure.ts Implement free variable calculations 2017-09-04 11:35:21 -07:00
config.ts Move modules to package root 2017-09-04 11:35:21 -07:00
index.ts Tidy up resource properties 2017-09-05 09:31:03 -07:00
langhost.ts Add a runtime.Log class 2017-09-04 11:35:21 -07:00
log.ts Add a runtime.Log class 2017-09-04 11:35:21 -07:00
property.ts Prettify properties 2017-09-05 10:55:09 -07:00
resource.ts Prettify properties 2017-09-05 10:55:09 -07:00
settings.ts Add a runtime.Log class 2017-09-04 11:35:21 -07:00