mirror of
https://github.com/penpot/penpot-plugins.git
synced 2025-01-06 14:50:21 -05:00
feat(plugin-types): add pages info to the file
This commit is contained in:
parent
2b8a76b2b0
commit
b54edb3ede
1 changed files with 16 additions and 0 deletions
16
libs/plugin-types/index.d.ts
vendored
16
libs/plugin-types/index.d.ts
vendored
|
@ -181,9 +181,25 @@ export interface PenpotPluginData {
|
|||
* It includes properties for the file's identifier, name, and revision number.
|
||||
*/
|
||||
export interface PenpotFile extends PenpotPluginData {
|
||||
/**
|
||||
* The `id` property is a unique identifier for the file.
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The `name` for the file
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* The `revn` will change for every document update
|
||||
*/
|
||||
revn: number;
|
||||
|
||||
/**
|
||||
* List all the pages for the current file
|
||||
*/
|
||||
pages: PenpotPage[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue