文件操作 - types.ts
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/give/src/Campaigns/resources/types.ts
编辑文件内容
/** * @since 4.0.0 */ export type Notification = { id: string; content: string | JSX.Element | Function; notificationType?: 'notice' | 'snackbar'; type?: 'error' | 'warning' | 'info' | 'success'; isDismissible?: boolean; autoHide?: boolean; onDismiss?: () => void; duration?: number, } /** * @since 4.0.0 */ declare module "@wordpress/data" { export function select(key: 'givewp/campaign-notifications'): { getNotifications(): Notification[], getNotificationsByType(type: 'snackbar' | 'notice'): Notification[] }; export function dispatch(key: 'givewp/campaign-notifications'): { addSnackbarNotice(notification: Notification): void, addNotice(notification: Notification): void, dismissNotification(id: string): void }; } /** * @since 4.0.0 */ export type GiveCampaignOptions = { isAdmin: boolean; adminUrl: string; apiRoot: string; apiNonce: string; campaignsAdminUrl: string;s currency: string; isRecurringEnabled: boolean; defaultForm: string; admin: { showCampaignInteractionNotice: boolean showFormGoalNotice: boolean showExistingUserIntroNotice: boolean showCampaignListTableNotice: boolean showCampaignFormNotice: boolean showCampaignSettingsNotice: boolean } } /** * @since 4.0.0 */ export type GoalType = 'amount' | 'donations' | 'donors' | 'amountFromSubscriptions' | 'subscriptions' | 'donorsFromSubscriptions';
修改文件时间
将文件时间修改为当前时间的前一年
删除文件