src/types.ts

slidev · packages/types/src/types.ts · typescript · MIT
ui

Defines TypeScript interfaces for slide metadata and configuration in Slidev.

// Source: https://github.com/slidevjs/slidev | License: MIT | Copyright 2020-PRESENT Anthony Fu
// Provided via justclaw.it.com; keep this notice with the code.
import type { Component } from 'vue'
import type { RouteComponent, RouteMeta } from 'vue-router'
import type YAML from 'yaml'
import type { SlidevConfig } from './config'

export type FrontmatterStyle = 'frontmatter' | 'yaml'

export interface SlideInfoBase {
  revision: string
  frontmatter: Record<string, any>
  content: string
  frontmatterRaw?: string
  note?: string
  title?: string
  level?: number
  /**
   * Image URLs extracted from the slide content (frontmatter, markdown, Vue components, CSS).
   * Populated at parse time to survive build-mode content stripping.
   */
  images?: string[]
}

export interface SourceSlideIn

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

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

Get a free API key