rename

Rename this code file.

const renamedFile = await codeFile.rename("NewComponentName.tsx")

Parameters

  • newName: string – The new name for the file.

Returns

  • Promise<CodeFile> – The updated CodeFile instance.