@seidhr/sanity-plugin-timespan-input
Version:
Make it easier to add timespan information with the help of Extended Date Time Format (EDTF).
30 lines (25 loc) • 594 B
text/typescript
import { ObjectDefinition } from 'sanity'
import { Plugin as Plugin_2 } from 'sanity'
import { PreviewConfig } from 'sanity'
export declare const timespan: {
type: 'object'
name: 'Timespan'
} & Omit<ObjectDefinition, 'preview'> & {
preview?:
| PreviewConfig<
{
timespanTitle: string
},
{
timespanTitle: string
}
>
| undefined
}
export declare const timespanInput: Plugin_2<void>
export {}
declare module '@sanity/types' {
interface IntrinsicDefinitions {
timespan: TimespanDefinition
}
}