/
index.ts
67 lines (58 loc) · 1.41 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
// Backwards compatibility, everything should be imported from top-level in v2.
export { superForm } from './superForm.js';
export {
intProxy,
numberProxy,
booleanProxy,
dateProxy,
fieldProxy,
formFieldProxy,
stringProxy,
arrayProxy,
fileProxy,
fileFieldProxy,
filesProxy,
filesFieldProxy,
type FieldProxy,
type ArrayProxy,
type FormFieldProxy
} from './proxies.js';
/////////////////////////////////////////////////////////////////////
// Duplicated from server/index.ts,
// because "server" path cannot be imported on client.
export { defaults, defaultValues } from '../defaults.js';
export { actionResult } from '../actionResult.js';
export { schemaShape } from '../jsonSchema/schemaShape.js';
export {
superValidate,
message,
setMessage,
setError,
withFiles,
removeFiles,
fail,
type SuperValidated,
type TaintedFields,
type ValidationErrors
} from '../superValidate.js';
export type { Infer, InferIn, Schema } from '../adapters/adapters.js';
/////////////////////////////////////////////////////////////////////
export type {
FormResult,
FormOptions,
SuperForm,
SuperFormEventList,
SuperFormEvents,
SuperFormSnapshot,
ValidateOptions,
TaintOption,
ChangeEvent
} from './superForm.js';
// Exporting from stringPath also, for convenience in components.
export {
type FormPath,
type FormPathLeaves,
type FormPathLeavesWithErrors,
type FormPathArrays,
type FormPathType
} from '../stringPath.js';