mirror of
https://github.com/penpot/penpot-export.git
synced 2025-01-09 00:10: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 fetch, { RequestInit } from 'node-fetch'
|
||||||
import { getObjectShapesFromPage, isComponent, pickObjectProps } from './helpers'
|
import { getObjectShapesFromPage, isComponent, pickObjectProps } from './helpers'
|
||||||
import type { PenpotComponent, PenpotObject, PenpotPage } from './types'
|
import type {
|
||||||
|
PenpotComponent,
|
||||||
interface PenpotSettings {
|
PenpotObject,
|
||||||
accessToken: string
|
PenpotPage,
|
||||||
}
|
PenpotSettings,
|
||||||
|
FetcherOptions,
|
||||||
interface FetcherOptions {
|
PenpotGetPageOptions,
|
||||||
command: string
|
} from './types'
|
||||||
body: Record<string, string>
|
|
||||||
}
|
|
||||||
|
|
||||||
interface PenpotGetPageOptions {
|
|
||||||
fileId: string
|
|
||||||
pageId: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export class Penpot {
|
export class Penpot {
|
||||||
private accessToken: string
|
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 {
|
export interface PenpotObject {
|
||||||
id: string
|
id: string
|
||||||
name: string
|
name: string
|
||||||
|
|
Loading…
Reference in a new issue