@frontitude/cli
Version:
The Frontitude CLI enables product teams to integrate their code with Frontitude (frontitude.com), thus creating a single source of truth for their product copy, from design to development.
30 lines (29 loc) • 765 B
TypeScript
declare type StringValue = {
text: string;
comment?: string;
};
export declare const getDataAndFileCombinedResult: (filePath: string, data: {
[key: string]: StringValue;
}) => Promise<{
[key: string]: StringValue;
}>;
export declare const updateFileWithData: (filePath: string, data: {
[key: string]: string;
}) => Promise<{
added: number;
edited: number;
}>;
export declare const getFileDiff: (oldFileContent: {
[key: string]: StringValue;
}, newFileContent: {
[key: string]: StringValue;
}) => {
added: number;
edited: number;
};
export declare const getDryRunResult: (filePath: string, data: {
[key: string]: StringValue;
}) => Promise<{
[key: string]: StringValue;
}>;
export {};