UNPKG

@tonyfreed/card-core

Version:

Core components and types for Ildex card system

22 lines 1.14 kB
/** * Card Actions * Action creators for the card store */ import type { ICard, IProfile, ThemeConfig, Language, ICardSection } from '../../types'; import type { CardAction } from '../types'; /** * Action Creators */ export declare const setCard: (card: ICard) => CardAction; export declare const updateCard: (updates: Partial<ICard>) => CardAction; export declare const updateProfile: (updates: Partial<IProfile>) => CardAction; export declare const updateTheme: (updates: Partial<ThemeConfig>) => CardAction; export declare const addSection: (section: ICardSection) => CardAction; export declare const removeSection: (sectionId: string) => CardAction; export declare const updateSection: (sectionId: string, updates: Partial<ICardSection>) => CardAction; export declare const reorderSections: (sectionIds: string[]) => CardAction; export declare const setLanguage: (language: Language) => CardAction; export declare const setLoading: (isLoading: boolean) => CardAction; export declare const setDirty: (isDirty: boolean) => CardAction; export declare const setSaved: (date: Date) => CardAction; //# sourceMappingURL=cardActions.d.ts.map