mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
22 lines
610 B
TypeScript
22 lines
610 B
TypeScript
// Type definitions for archy
|
|
// Project: https://github.com/substack/node-archy
|
|
// Definitions by: vvakame <https://github.com/vvakame/>
|
|
// Definitions: https://github.com/borisyankov/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;
|
|
|
|
module archy {
|
|
interface Data {
|
|
label: string;
|
|
nodes?: (Data | string)[];
|
|
}
|
|
interface Options {
|
|
unicode?: boolean;
|
|
}
|
|
}
|
|
|
|
export = archy;
|
|
}
|