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

0.6.5 • Public • Published

Installation

npm install --save @types/ccap

Summary

This package contains type definitions for ccap (https://github.com/DoubleSpout/ccap).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ccap.

index.d.ts

/// <reference types="node" />

interface Captcha {
    get(): [string, Buffer];
}

interface Options {
    width?: number | undefined; // set width,default is 256
    height?: number | undefined; // set height,default is 60
    offset?: number | undefined; // set text spacing,default is 40
    quality?: number | undefined; // set pic quality,default is 50
    fontsize?: number | undefined; // set font size,default is 57
    // Custom the function to generate captcha text
    generate?(): string;
}

declare function ccap(width: number, height: number, offset: number): Captcha;
declare function ccap(options?: Options): Captcha;

declare namespace ccap {}
export = ccap;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: @types/node

Credits

These definitions were written by taoqf.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/ccap

Weekly Downloads

7

Version

0.6.5

License

MIT

Unpacked Size

3.9 kB

Total Files

5

Last publish

Collaborators

  • types