Installation
npm install --save @types/asciify
Summary
This package contains type definitions for asciify (https://www.npmjs.org/package/asciify).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/asciify.
index.d.ts
/// <reference types="node" />
interface AsciifyOptions {
font?: string | undefined;
maxWidth?: number | undefined;
color?: string | undefined;
}
interface AsciifyCallback {
// err is sometimes a string and sometimes an Error
(err: any, asciifiedText: string): void;
}
declare module "asciify" {
function asciify(text: string, callback: AsciifyCallback): void;
function asciify(text: string, options: string, callback: AsciifyCallback): void;
function asciify(text: string, options: AsciifyOptions, callback: AsciifyCallback): void;
namespace asciify {
function getFonts(callback: (err: Error, fonts: string[]) => void): void;
}
export = asciify;
}
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:04 GMT
- Dependencies: @types/node
Credits
These definitions were written by Alan Norbauer.