-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.ts
80 lines (76 loc) · 2.52 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/* Public API for the library */
export { schema, field, arrayOf, typed, checkSchema, forType } from './typesafe-schemas';
/* key:schema list. Can be extended using declaration merging to provide additional autocomplete options. */
export { SchemaDirectory } from './schema-directory';
/* Fallback schema definition when using falsy type */
export { GenericSchema, GenericField } from './schemas/generic';
/* Definitions for Sanity built in types.
* Schemas and Options can be extended using declaration merging.
* Rules are provided so they can be used to compose reusable, typesafe functions. */
export {
ObjectArraySchema,
StringArraySchema,
ArrayRule,
ArrayOptions,
EditModal,
} from './schemas/array';
export {
BlockSchema,
BlockOptions,
BlockRule,
BlockList,
BlockStyle,
Marks,
Decorator,
Annotations,
} from './schemas/block';
export { BooleanSchema, BooleanOptions, BooleanRule } from './schemas/boolean';
export { DateSchema, DateOptions, DateRule } from './schemas/date';
export { DatetimeSchema, DatetimeOptions, DatetimeRule } from './schemas/datetime';
export {
DocumentSchema,
DocumentOptions,
DocumentRule,
DocumentOrdering,
} from './schemas/document';
export { FileSchema, FileOptions, FileRule } from './schemas/file';
export { GeopointSchema, GeopointOptions, GeopointRule } from './schemas/geopoint';
export { ImageSchema, ImageOptions, ImageRule } from './schemas/image';
export { NumberSchema, NumberOptions, NumberRule } from './schemas/number';
export { ObjectSchema, ObjectOptions, ObjectRule } from './schemas/object';
export {
ReferenceSchema,
ReferenceResolverOption,
ReferenceStringOption,
ReferenceRule,
} from './schemas/reference';
export {
SlugSchema,
SlugOptions,
SlugRule,
SlugSourceOptions,
SlugUniqueOptions,
SlugSourceFn,
SlugifierFn,
UniqueCheckerFn,
} from './schemas/slug';
export { StringSchema, StringOptions, StringRule } from './schemas/string';
export { TextSchema, TextOptions, TextRule } from './schemas/text';
export { UrlSchema, UrlOptions, UrlRule } from './schemas/url';
/* Support types exported to allow for advanced customization via declaration merging */
export {
SanitySchemaBase,
EnumListProps,
HideFunction,
HideContext,
Preview,
} from './schemas/util-types/common';
export { FieldBase } from './schemas/util-types/field';
export { Fieldset } from './schemas/util-types/fieldset';
export {
Rule,
Validation,
ValidationContext,
ChildValidation,
} from './schemas/util-types/validation';
export { FieldGroup } from './schemas/field-group';