anyone-oslo/pages

View on GitHub
app/javascript/types/Template.ts

Summary

Maintainability
A
0 mins
Test Coverage
export type Block = {
  name: string;
  title: string;
  description?: string;
  optional: boolean;
  enforced: boolean;
  size: string;
  class?: string;
  localized?: boolean;
  placeholder?: string;
  options?: [string, string][];
  type?: string;
};

export type Config = {
  name: string;
  template_name: string;
  blocks: Block[];
  metadata_blocks: Block[];
  images: boolean;
  dates: boolean;
  tags: boolean;
  files: boolean;
};