storyblok-schema-types
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

Storyblok Schema Types

This are typescript types for Storyblok Schemas.

Example

For official Text Field type

img.png

Typescript type looks like

export interface StoryblokGenericFieldType {
  display_name: string;
  required: boolean;
  translatable: boolean;
  description?: string;
  pos?: number;
}

export interface StoryblokTextFieldType extends StoryblokGenericFieldType {
  type: 'text';
  default_value?: string;
  no_translate?: boolean;
  max_length?: number;
  regex?: string;
  rtl?: boolean;
}

*Disclaimer: This is done completelly for our in-house purposes. Decided to open source it, becasue maybe anyone else will find it useful :) Please let me know if u will have any problems or issues.

Readme

Keywords

none

Package Sidebar

Install

npm i storyblok-schema-types

Weekly Downloads

283

Version

1.1.2

License

ISC

Unpacked Size

26.2 kB

Total Files

10

Last publish

Collaborators

  • marckraw