source: frontend/node_modules/tsconfig-paths/lib/filesystem.d.ts

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/**
2 * Typing for the fields of package.json we care about
3 */
4export interface PackageJson {
5 [key: string]: string;
6}
7/**
8 * A function that json from a file
9 */
10export interface ReadJsonSync {
11 (packageJsonPath: string): any | undefined;
12}
13export interface FileExistsSync {
14 (name: string): boolean;
15}
16export interface FileExistsAsync {
17 (path: string, callback: (err?: Error, exists?: boolean) => void): void;
18}
19export interface ReadJsonAsyncCallback {
20 (err?: Error, content?: any): void;
21}
22export interface ReadJsonAsync {
23 (path: string, callback: ReadJsonAsyncCallback): void;
24}
25export declare function fileExistsSync(path: string): boolean;
26/**
27 * Reads package.json from disk
28 * @param file Path to package.json
29 */
30export declare function readJsonFromDiskSync(packageJsonPath: string): any | undefined;
31export declare function readJsonFromDiskAsync(path: string, callback: (err?: Error, content?: any) => void): void;
32export declare function fileExistsAsync(path2: string, callback2: (err?: Error, exists?: boolean) => void): void;
33export declare function removeExtension(path: string): string;
Note: See TracBrowser for help on using the repository browser.