@types/token-stream
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Installation

npm install --save @types/token-stream

Summary

This package contains type definitions for token-stream (https://github.com/pugjs/token-stream#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/token-stream.

index.d.ts

export = TokenStream;

declare class TokenStream<T = any> {
    constructor(tokens: T[]);
    lookahead(index: number): T | undefined;
    peek(): T | undefined;
    advance(): T | undefined;
    defer(token: T): void;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Maiko Tan.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/token-stream

      Weekly Downloads

      2,028

      Version

      1.0.3

      License

      MIT

      Unpacked Size

      3 kB

      Total Files

      5

      Last publish

      Collaborators

      • types