7.20.3 • Published 2 years ago

@types/cson v7.20.3

Weekly downloads
433
License
MIT
Repository
github
Last release
2 years ago

Installation

npm install --save @types/cson

Summary

This package contains type definitions for cson (https://github.com/bevry/cson).

Details

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

index.d.ts

// Type definitions for cson 7.20
// Project: https://github.com/bevry/cson
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare class CSON {
    // Create Strings
    stringify(data: any, opts?: object, indent?: any): string;
    createCSONString(data: any, opts?: object, next?: any): string;
    createJSONString(data: any, opts?: object, next?: any): string;
    createString(data: any, opts?: object, next?: any): string;

    // Parse Strings
    parse(data: string, opts?: object, next?: any): any;
    parseCSONString(data: string, opts?: object, next?: any): any;
    parseJSONString(data: string, opts?: object, next?: any): any;
    parseCSString(data: string, opts?: object, next?: any): any;
    parseJSString(data: string, opts?: object, next?: any): any;
    parseString(data: string, opts?: object, next?: any): any;

    // Parse Files
    load(filePath: string, opts?: object, next?: any): any;
    parseCSONFile(filePath: string, opts?: object, next?: any): any;
    parseJSONFile(filePath: string, opts?: object, next?: any): any;
    parseCSFile(filePath: string, opts?: object, next?: any): any;
    parseJSFile(filePath: string, opts?: object, next?: any): any;

    // Require Files
    requireCSFile(filePath: string, opts?: object, next?: any): any;
    requireJSFile(filePath: string, opts?: object, next?: any): any;
    requireFile(filePath: string, opts?: object, next?: any): any;
}

declare const _default: CSON;

export = _default;

Additional Details

  • Last updated: Tue, 02 Nov 2021 16:01:27 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Sam Saint-Pettersen.

7.20.2

2 years ago

7.20.3

2 years ago

7.20.1

4 years ago

7.20.0

4 years ago

0.0.31

8 years ago

0.0.30

9 years ago

0.0.29

9 years ago

0.0.28-alpha

9 years ago

0.0.27-alpha

9 years ago

0.0.26-alpha

9 years ago

0.0.25-alpha

9 years ago

0.0.24-alpha

9 years ago

0.0.23-alpha

9 years ago

0.0.22-alpha

9 years ago

0.0.17-alpha

9 years ago

0.0.16-alpha

9 years ago