0
Fork 0
mirror of https://github.com/penpot/penpot-export.git synced 2025-01-07 15:39:00 -05:00

Moved types

This commit is contained in:
Enrique Bernabeu 2023-08-21 08:40:26 +02:00
parent 9eed1481ce
commit 49dd395dc8
2 changed files with 22 additions and 15 deletions

View file

@ -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<string, string>
}
interface PenpotGetPageOptions {
fileId: string
pageId: string
}
import type {
PenpotComponent,
PenpotObject,
PenpotPage,
PenpotSettings,
FetcherOptions,
PenpotGetPageOptions,
} from './types'
export class Penpot {
private accessToken: string

View file

@ -1,3 +1,17 @@
export interface PenpotSettings {
accessToken: string
}
export interface FetcherOptions {
command: string
body: Record<string, string>
}
export interface PenpotGetPageOptions {
fileId: string
pageId: string
}
export interface PenpotObject {
id: string
name: string