UNPKG

astro

Version:

Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

35 lines (34 loc) 1.16 kB
import type { TransitionAnimationValue } from './view-transitions.js'; export interface AstroComponentDirectives extends Astro.ClientDirectives { 'server:defer'?: boolean; } export interface AstroClientDirectives { 'client:load'?: boolean; 'client:idle'?: IdleRequestOptions | boolean; 'client:media'?: string; 'client:visible'?: ClientVisibleOptions | boolean; 'client:only'?: boolean | string; } export type ClientVisibleOptions = Pick<IntersectionObserverInit, 'rootMargin'>; export interface AstroBuiltinAttributes { 'class:list'?: Record<string, boolean> | Record<any, any> | Iterable<string> | Iterable<any> | string; 'set:html'?: any; 'set:text'?: any; 'is:raw'?: boolean; 'transition:animate'?: TransitionAnimationValue; 'transition:name'?: string; 'transition:persist'?: boolean | string; } export interface AstroDefineVarsAttribute { 'define:vars'?: any; } export interface AstroStyleAttributes { 'is:global'?: boolean; 'is:inline'?: boolean; } export interface AstroScriptAttributes { 'is:inline'?: boolean; } export interface AstroSlotAttributes { 'is:inline'?: boolean; }