CodeFile

CodeFile

CodeFile

A class representing a code file in a Framer project.

Methods & Properties

The current content/source code of the file.

The current content/source code of the file.

Array of exports available in this code file.

Array of exports available in this code file.

Get all versions/history of this code file.

Get all versions/history of this code file.

The unique identifier of the code file.

The unique identifier of the code file.

Run linting on the code file content.

Run linting on the code file content.

The name of the code file (e.g., "MyComponent.tsx").

The name of the code file (e.g., "MyComponent.tsx").

The file system path of the code file.

The file system path of the code file.

Remove the code file from the project.

Remove the code file from the project.

Rename the code file.

Rename the code file.

Set the content of the code file.

Set the content of the code file.

Run TypeScript type checking on the code file.

Run TypeScript type checking on the code file.