This change introduces a basic JavaScript SDK (actually in TypeScript, but consumable either way). This is just scaffolding but provides the minimal set of abstractions necessary to start writing real stacks.
14 lines
314 B
TypeScript
14 lines
314 B
TypeScript
// Copyright 2016 Marapongo, Inc. All rights reserved.
|
|
|
|
import { Context } from './context';
|
|
|
|
// A stack is a fundamental resource that encapsulates and exposes zero-to-many other services.
|
|
export abstract class Stack {
|
|
protected ctx: Context;
|
|
|
|
constructor(ctx: Context) {
|
|
this.ctx = ctx;
|
|
}
|
|
}
|
|
|