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

1.4.3 • Public • Published

Installation

npm install --save @types/ascii-art

Summary

This package contains type definitions for ascii-art (https://github.com/khrome/ascii-art).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ascii-art.

index.d.ts

export type StyleType = (text: string, style?: string, close?: boolean) => Art;
export type FontType = (text: string, font?: string, styleOrCallback?: string | Cb, callback?: Cb) => Art;
export type ImageType = (options: object, callback?: Cb) => Art;
export type TableType = (options: object, callback?: Cb) => Art;
export type ArtworkType = (options: object, callback?: Cb) => Art;
export type LinesType = (...options: any[]) => Art;
export type OverlayType = (...options: any[]) => Art;
export type JoinType = (...options: any[]) => Art;
export type StringsType = (...options: any[]) => Art;

export const style: StyleType;
export const font: FontType;
export const image: ImageType;
export const table: TableType;
export const artwork: ArtworkType;
export const lines: LinesType;
export const overlay: OverlayType;
export const join: JoinType;
export const strings: StringsType;
export const Figlet: any;
export const Image: any;

export interface Art {
    style: StyleType;
    font: FontType;
    image: ImageType;
    table: TableType;
    artwork: ArtworkType;
    lines: LinesType;
    overlay: OverlayType;
    join: JoinType;
    working: boolean;

    toPromise: () => Promise<string>;
}

export type Cb = (result: string) => void;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:04 GMT
  • Dependencies: none

Credits

These definitions were written by Lukas Elmer.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/ascii-art

Weekly Downloads

72

Version

1.4.3

License

MIT

Unpacked Size

5.03 kB

Total Files

5

Last publish

Collaborators

  • types