Framer
Solutions
Platform
Community
Resources
Enterprise
Pricing
Log in
Sign up
Copy logo SVG
Brand guidelines
Search...
Get Started
Overview
Compare
FAQ
Plugins
Introduction
Quick Start
Publishing
Changelog
Reference
Guides
Server API
Fetch
Examples
Components
Asset Sharing
Auto-Sizing
Property Controls
Overrides
Developers
Search
CodeFile
getVersions
Get all versions (history) of this code file.
const versions = await codeFile.getVersions() console.log(`File has ${versions.length} versions`)
Promise<readonly CodeFileVersion[]> – An array of CodeFileVersion instances.
Promise<readonly CodeFileVersion[]>
remove
typecheck