Nondeterministic Programming Methodology

    @types/convert-excel-to-json
    TypeScript icon, indicating that this package has built-in type declarations

    1.7.1 • Public • Published

    Installation

    npm install --save @types/convert-excel-to-json

    Summary

    This package contains type definitions for convert-excel-to-json (https://github.com/DiegoZoracKy/convert-excel-to-json).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/convert-excel-to-json.

    index.d.ts

    // Type definitions for convert-excel-to-json 1.7
    // Project: https://github.com/DiegoZoracKy/convert-excel-to-json
    // Definitions by: UNIDY2002 <https://github.com/UNIDY2002>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    /// <reference types="node" />
    
    interface SheetConfig {
        header?: { rows: number } | undefined;
        range?: string | undefined;
        columnToKey?: { [key: string]: string } | undefined;
        includeEmptyLines?: boolean | undefined;
        sheetStubs?: boolean | undefined;
    }
    
    declare function excelToJson(
        config: ({ sourceFile: string } | { source: string | Buffer })                 // Either sourceFile or source should have a value
            & { sheets?: ReadonlyArray<(string | (SheetConfig & { name: string }))> | undefined }  // Nested SheetConfig should be allowed
            & SheetConfig                                                              // ... or just a simple config for all
            | string,                                                                  // Input can also be a json-string (for cli)
        sourceFile?: string,                                                           // For cli
    ): { [key: string]: any[] };        // Using any to provide more flexibility for downstream usages
    
    export = excelToJson;

    Additional Details

    • Last updated: Thu, 08 Jul 2021 09:08:12 GMT
    • Dependencies: @types/node
    • Global values: none

    Credits

    These definitions were written by UNIDY2002.

    Keywords

    none

    Install

    npm i @types/convert-excel-to-json

    DownloadsWeekly Downloads

    2,769

    Version

    1.7.1

    License

    MIT

    Unpacked Size

    5.31 kB

    Total Files

    4

    Last publish

    Collaborators

    • types