Files
York Yao 0e03b5f45d add types of pangu (#22643)
* add types of pangu

* remove default export and unused namespace
2018-01-03 16:06:05 -08:00

22 lines
880 B
TypeScript

// Type definitions for pangu 3.3
// Project: https://github.com/vinta/pangu.js
// Definitions by: York Yao <https://github.com/plantain-00>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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 spacingPage(): void;
export function spacingElementById(id: string): void;
export function spacingElementByClassName(className: string): void;
export function spacingElementByTagName(tagName: string): void;
export as namespace pangu;