mirror of
https://github.com/penpot/penpot-export.git
synced 2025-01-08 16:00:08 -05:00
Moved types
This commit is contained in:
parent
9eed1481ce
commit
49dd395dc8
2 changed files with 22 additions and 15 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue