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

4.0.2 • Public • Published

Installation

npm install --save @types/pangu

Summary

This package contains type definitions for pangu (https://github.com/vinta/pangu.js).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pangu.

index.d.ts

export function spacing(text: string): string;

export function spacingFile(path: string, callback: (error: Error, data: string) => void): void;
export function spacingFile(path: string): Promise<string>;

export function spacingFileSync(path: string): string;

export function spacingText(text: string, callback: (error: Error, data: string) => void): void;
export function spacingText(text: string): Promise<string>;

export function spacingNode(contextNode: HTMLElement): void;
export function spacingElementById(id: string): void;
export function spacingElementByClassName(className: string): void;
export function spacingElementByTagName(tagName: string): void;
export function spacingPageTitle(): void;
export function spacingPageBody(): void;
export function spacingPage(): void;
export function autoSpacingPage(pageDelay?: number, nodeDelay?: number, nodeMaxWait?: number): void;

export as namespace pangu;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by York Yao, and AH-dark.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/pangu

      Weekly Downloads

      437

      Version

      4.0.2

      License

      MIT

      Unpacked Size

      4.51 kB

      Total Files

      5

      Last publish

      Collaborators

      • types