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

7.20.3 • Public • Published

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

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: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by Sam Saint-Pettersen.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/cson

Weekly Downloads

232

Version

7.20.3

License

MIT

Unpacked Size

5.2 kB

Total Files

5

Last publish

Collaborators

  • types