Skip to main content
Module

x/vno/core/factory/Queue.ts

a build tool for compiling and bundling Vue single-file components
Go to Latest
File
import { Component, Cmpt } from "../dts/factory.d.ts";export default class Queue { public components: Cmpt.List;
constructor() { this.components = <Cmpt.List> []; }
get length() { return this.components.length; }
public enqueue(component: Component): void { if (component != null) { this.components.push(component); } }
public dequeue(): Component | undefined { if (!this.isEmpty()) { return this.components.shift(); } }
public isEmpty() { return this.length < 1; }}