Event Calendar Widget Interfaces (EventCalendarWidget/interface.ts)

illa-builder · apps/builder/src/widgetLibrary/EventCalendarWidget/interface.ts · typescript · Apache-2.0
ui, lang:typescript, fw:react

TypeScript type definitions and interfaces for building customizable event calendar widgets.

// Source: https://github.com/illacloud/illa-builder | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import { SlotInfo, View, stringOrDate } from "react-big-calendar"
import { BaseWidgetProps } from "@/widgetLibrary/interface"

export type Pluralize<T> = {
  [K in keyof T as `${string & K}s`]: T[K][]
}

export type CssAttribute = string | number | undefined
export interface Event {
  label?: string
  title?: string
  id?: number | string
  value?: string
  start?: Date
  end?: Date
  resourceID?: number | string
  description?: string
  allDay?: boolean
  resourceTitle?: string
  draggable?: boolean
  resizable?: boolean
}
export interface ResourceMap {
  resourceTitle?: string
  

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key