mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-22 12:33:38 +08:00
17 lines
1001 B
TypeScript
17 lines
1001 B
TypeScript
// Type definitions for fs-cson 0.3
|
|
// Project: https://github.com/charlierudolph/fs-cson
|
|
// Definitions by: Piotr Roszatycki <https://github.com/dex4er>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="node" />
|
|
|
|
export function readFile(filePath: string, done: (err: Error | null, result: any) => void): void;
|
|
export function readFileSync(filePath: string): any;
|
|
export function register(): void;
|
|
export function updateFile(filePath: string, updater: (data: any) => any, done: (err: NodeJS.ErrnoException) => void): void;
|
|
export function updateFileSync(filePath: string, updater: (data: any) => any): void;
|
|
export function writeFile(filePath: string, data: any, done: (err: NodeJS.ErrnoException) => void): void;
|
|
export function writeFileSync(filePath: string, data: any): void;
|
|
export function writeFileSafe(filePath: string, data: any, done: (err: NodeJS.ErrnoException) => void): void;
|
|
export function writeFileSafeSync(filePath: string, data: any): void;
|