Skip to content

sb-mig/storyblok-schema-types

Repository files navigation

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; // if true, then the translations will not be exported by export translations plugin
  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.

About

Repository with storyblok-schema-types

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •