mirror of
https://github.com/hoverkraft-tech/compose-action.git
synced 2026-01-12 15:43:06 +08:00
19 lines
445 B
TypeScript
19 lines
445 B
TypeScript
import { Base, initContainer } from "../ContainerBase";
|
|
declare class Stack<T> extends Base {
|
|
constructor(container?: initContainer<T>);
|
|
clear(): void;
|
|
/**
|
|
* @description Insert element to stack's end.
|
|
*/
|
|
push(element: T): void;
|
|
/**
|
|
* @description Removes the end element.
|
|
*/
|
|
pop(): void;
|
|
/**
|
|
* @description Accesses the end element.
|
|
*/
|
|
top(): T | undefined;
|
|
}
|
|
export default Stack;
|