need dist for plugins
Signed-off-by: Dmytro Stanchiev <git@dmytros.dev>
This commit is contained in:
15
dist/shared/jsonc-parser.d.ts
vendored
Normal file
15
dist/shared/jsonc-parser.d.ts
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
export interface JsoncParseResult<T> {
|
||||
data: T | null;
|
||||
errors: Array<{
|
||||
message: string;
|
||||
offset: number;
|
||||
length: number;
|
||||
}>;
|
||||
}
|
||||
export declare function parseJsonc<T = unknown>(content: string): T;
|
||||
export declare function parseJsoncSafe<T = unknown>(content: string): JsoncParseResult<T>;
|
||||
export declare function readJsoncFile<T = unknown>(filePath: string): T | null;
|
||||
export declare function detectConfigFile(basePath: string): {
|
||||
format: "json" | "jsonc" | "none";
|
||||
path: string;
|
||||
};
|
||||
Reference in New Issue
Block a user