UNPKG

@types/pangu

Version:
40 lines (29 loc) 1.54 kB
# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pangu/index.d.ts) ````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](https://github.com/plantain-00), and [AH-dark](https://github.com/AH-dark).