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

1.5.2 • Public • Published

Installation

npm install --save @types/zipcelx

Summary

This package contains type definitions for zipcelx (https://github.com/dixieio/zipcelx#readme).

Details

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

index.d.ts

/**
 * The value and type of a single cell. Only strings and numbers are supported.
 */
export interface ZipCelXCell {
    /**
     * The cell value
     */
    value: string | number;
    /**
     * The cell value type
     */
    type: "string" | "number";
}

/**
 * A Row (a set of cells)
 */
export type ZipCelXRow = ZipCelXCell[];

/**
 * A DataSet (a set of rows)
 */
export type ZipCelXDataSet = ZipCelXRow[];

/**
 * Represents a Sheet
 */
export interface ZipCelXSheet {
    /**
     * The sheet's DataSet
     */
    data: ZipCelXDataSet;
}

/**
 * The zipcelx configuration
 */
export interface ZipCelXConfig {
    /**
     * The file name of the exported file
     */
    filename: string;

    /**
     * The sheet to be exported as an .xlsx file
     */
    sheet: ZipCelXSheet;
}

export default function zipcelx(config: ZipCelXConfig): Promise<Blob>;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Alessandro Burato.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/zipcelx

      Weekly Downloads

      8,099

      Version

      1.5.2

      License

      MIT

      Unpacked Size

      4.27 kB

      Total Files

      5

      Last publish

      Collaborators

      • types