@frontify/platform-app
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

Platform App Types

Code Structure

Defines the App and gives typing for the settings

/* (c) Copyright Frontify Ltd., all rights reserved. */

import { defineApp } from '@frontify/platform-app';
import { settings } from './settings';

export default defineApp({
    app: App,
    settings,
});

Settings Definition

Provides settings types for Platform Apps

Example

/* (c) Copyright Frontify Ltd., all rights reserved. */

import { defineSettings } from '@frontify/platform-app';

export const settings = defineSettings({
    credentials: [
        {
            type: 'input',
            id: 'api-token',
            label: 'API Token',
        },
    ],
});

Readme

Keywords

none

Package Sidebar

Install

npm i @frontify/platform-app

Weekly Downloads

50

Version

0.1.5

License

none

Unpacked Size

15 kB

Total Files

11

Last publish

Collaborators

  • jmatyas
  • jamieatfrontify
  • frontify-dev
  • samuel.alev