diff --git a/packages/penpot-css-export/src/lib/api/penpot.ts b/packages/penpot-css-export/src/lib/api/penpot.ts index 4f033de..e456c3a 100644 --- a/packages/penpot-css-export/src/lib/api/penpot.ts +++ b/packages/penpot-css-export/src/lib/api/penpot.ts @@ -1,20 +1,13 @@ import fetch, { RequestInit } from 'node-fetch' import { getObjectShapesFromPage, isComponent, pickObjectProps } from './helpers' -import type { PenpotComponent, PenpotObject, PenpotPage } from './types' - -interface PenpotSettings { - accessToken: string -} - -interface FetcherOptions { - command: string - body: Record -} - -interface PenpotGetPageOptions { - fileId: string - pageId: string -} +import type { + PenpotComponent, + PenpotObject, + PenpotPage, + PenpotSettings, + FetcherOptions, + PenpotGetPageOptions, +} from './types' export class Penpot { private accessToken: string diff --git a/packages/penpot-css-export/src/lib/api/types.ts b/packages/penpot-css-export/src/lib/api/types.ts index 6440615..5d97c46 100644 --- a/packages/penpot-css-export/src/lib/api/types.ts +++ b/packages/penpot-css-export/src/lib/api/types.ts @@ -1,3 +1,17 @@ +export interface PenpotSettings { + accessToken: string +} + +export interface FetcherOptions { + command: string + body: Record +} + +export interface PenpotGetPageOptions { + fileId: string + pageId: string +} + export interface PenpotObject { id: string name: string