UNPKG

edge.js

Version:
23 lines (22 loc) 695 B
export default class Stacks { #private; /** * Create a new stack placeholder. Multiple calls to this method * with the same name results in an exception. */ create(name: string): string; /** * Push content inside a given stack. Content can be pre-seeded * without creating a stack */ pushTo(name: string, contents: string): this; /** * Push contents to a stack with a unique source id. A * source can only push once to a given stack. */ pushOnceTo(name: string, sourceId: string, contents: string): void; /** * Fill placeholders with their actual content */ fillPlaceholders(contents: string): string; }