UNPKG

declarations

Version:

[![npm version](https://badge.fury.io/js/declarations.svg)](https://www.npmjs.com/package/declarations)

22 lines (18 loc) 617 B
// Type definitions for archy // Project: https://github.com/substack/node-archy // Definitions by: vvakame <https://github.com/vvakame/> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "archy" { function archy(obj: archy.Data, prefix?: string, opts?: archy.Options): string; function archy(obj: string, prefix?: string, opts?: archy.Options): string; namespace archy { interface Data { label: string; nodes?: (Data | string)[]; } interface Options { unicode?: boolean; } } export = archy; }