npm.io
7.20.3 • Published 3 years ago

@types/cson

Licence
MIT
Version
7.20.3
Deps
0
Size
5 kB
Vulns
0
Weekly
0
Stars
51.5K

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 2205 GMT
  • Dependencies: none

Credits

These definitions were written by Sam Saint-Pettersen.