Skip to main content

View Types

The Types module provides TypeScript type definitions for view components, ensuring type safety and consistency across the view system.

Overview

The Types module is responsible for:
  • Defining TypeScript interfaces for view schemas
  • Providing type definitions for different view types
  • Ensuring type safety for view operations
  • Supporting TypeScript’s static type checking

Core Types

ViewSchema

The core ViewSchema interface defines the structure of all view schemas:

ViewType

The ViewType type defines the supported view types:

FieldDefinition

The FieldDefinition interface defines the structure of field definitions:

View-Specific Types

FormViewSchema

The FormViewSchema interface defines the structure of form views:

TableViewSchema

The TableViewSchema interface defines the structure of table views:

DetailViewSchema

The DetailViewSchema interface defines the structure of detail views:

Layout Types

LayoutConfiguration

The LayoutConfiguration interface defines the structure of layout configurations:

Section

The Section interface defines the structure of layout sections:

Utility Types

ViewRenderOptions

The ViewRenderOptions interface defines options for rendering views:

ValidationRules

The ValidationRules interface defines validation rules for fields:

Type Guards

The Types module provides type guards for checking view types:

Type Utilities

The Types module provides utility types for working with view schemas: