5c1c998b97
Render front components in a widget. https://github.com/user-attachments/assets/1ae130a4-070d-498e-88f7-80cee847e2fa --------- Co-authored-by: Charles Bochet <charles@twenty.com>
14 lines
344 B
TypeScript
14 lines
344 B
TypeScript
import { type SourceFile, VariableDeclarationKind } from 'ts-morph';
|
|
|
|
export const addExportedConst = (
|
|
sourceFile: SourceFile,
|
|
name: string,
|
|
initializer: string,
|
|
): void => {
|
|
sourceFile.addVariableStatement({
|
|
isExported: true,
|
|
declarationKind: VariableDeclarationKind.Const,
|
|
declarations: [{ name, initializer }],
|
|
});
|
|
};
|