@types/asciify
TypeScript icon, indicating that this package has built-in type declarations

1.3.33 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/asciify

Weekly Downloads

157

Version

1.3.33

License

MIT

Unpacked Size

3.96 kB

Total Files

5

Last publish

Collaborators

  • types