mirror of https://github.com/pulumi/pulumi.git
9 lines
276 B
TypeScript
9 lines
276 B
TypeScript
|
// Copyright 2016-2018, Pulumi Corporation. All rights reserved.
|
||
|
|
||
|
import { Resource } from "./resource";
|
||
|
|
||
|
// Step 1: Populate our dependency graph.
|
||
|
const a = new Resource("a", { state: 1 });
|
||
|
const b = new Resource("b", { state: 2, resource: a });
|
||
|
// Dependency graph: b -> a
|