sanity-plugin-recurring-dates 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sanity-plugin-recurring-dates",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Add a custom input component to your Sanity Studio to manage recurring dates (e.g. for events)",
5
5
  "keywords": [
6
6
  "sanity",
package/src/plugin.tsx CHANGED
@@ -4,7 +4,7 @@ import {DEFAULT_CONFIG} from './constants'
4
4
  import recurringDateSchema from './schema/recurringDates'
5
5
  import {PluginConfig, WithRequiredProperty} from './types'
6
6
 
7
- export const recurringDates = definePlugin<PluginConfig>((config) => {
7
+ export const recurringDates = definePlugin<PluginConfig | void>((config) => {
8
8
  const pluginConfig: WithRequiredProperty<PluginConfig, 'defaultRecurrences'> = {
9
9
  ...DEFAULT_CONFIG,
10
10
  ...config,
package/src/types.ts CHANGED
@@ -25,3 +25,9 @@ declare module 'sanity' {
25
25
  recurringDates: RecurringDateFieldOptions
26
26
  }
27
27
  }
28
+
29
+ export interface RecurringDate {
30
+ rrule: string
31
+ startDate: string
32
+ endDate: String
33
+ }