@reactables/forms 1.3.0-beta.3 → 2.0.0-beta.0
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/dist/Helpers/addAsyncValidationEffects.d.ts +9 -6
- package/dist/Helpers/buildFormState.d.ts +6 -6
- package/dist/Helpers/buildHub2Source.d.ts +4 -4
- package/dist/Helpers/controlRefCheck.d.ts +5 -5
- package/dist/Helpers/controlRefCheck.test.d.ts +1 -1
- package/dist/Helpers/generateKey.d.ts +1 -1
- package/dist/Helpers/getAncestorControls.d.ts +3 -3
- package/dist/Helpers/getAncestorControls.test.d.ts +1 -1
- package/dist/Helpers/getArrayItems.d.ts +3 -3
- package/dist/Helpers/getArrayItems.test.d.ts +1 -1
- package/dist/Helpers/getControl.d.ts +3 -3
- package/dist/Helpers/getControlBranch.d.ts +3 -3
- package/dist/Helpers/getControlBranch.test.d.ts +1 -1
- package/dist/Helpers/getDescendantControls.d.ts +3 -3
- package/dist/Helpers/getDescendantControls.test.d.ts +1 -1
- package/dist/Helpers/getFormKey.d.ts +2 -2
- package/dist/Helpers/getValueFromControlConfig.d.ts +2 -2
- package/dist/Helpers/getValueFromControlConfig.test.d.ts +1 -1
- package/dist/Helpers/index.d.ts +4 -4
- package/dist/Helpers/isChildRef.d.ts +2 -2
- package/dist/Helpers/reverseObjectKeys.d.ts +2 -2
- package/dist/Models/Configs.d.ts +22 -22
- package/dist/Models/ControlRef.d.ts +1 -1
- package/dist/Models/Controls.d.ts +48 -48
- package/dist/Models/FormErrors.d.ts +3 -3
- package/dist/Models/Payloads.d.ts +24 -24
- package/dist/Models/Validators.d.ts +5 -5
- package/dist/Models/index.d.ts +6 -6
- package/dist/Reducers/Hub1/addControl.d.ts +5 -5
- package/dist/Reducers/Hub1/getErrors.d.ts +4 -4
- package/dist/Reducers/Hub1/index.d.ts +6 -7
- package/dist/Reducers/Hub1/markControlAsPristine.d.ts +4 -4
- package/dist/Reducers/Hub1/markControlAsTouched.d.ts +4 -4
- package/dist/Reducers/Hub1/markControlAsUntouched.d.ts +4 -4
- package/dist/Reducers/Hub1/pushControl.d.ts +5 -5
- package/dist/Reducers/Hub1/removeControl.d.ts +5 -5
- package/dist/Reducers/Hub1/resetControl.d.ts +5 -5
- package/dist/Reducers/Hub1/updateAncestorPristineValues.d.ts +5 -5
- package/dist/Reducers/Hub1/updateAncestorValues.d.ts +6 -6
- package/dist/Reducers/Hub1/updateAncestorValuesAddControl.d.ts +6 -6
- package/dist/Reducers/Hub1/updateAncestorValuesRemoveControl.d.ts +6 -6
- package/dist/Reducers/Hub1/updateValues.d.ts +5 -5
- package/dist/Reducers/Hub2/asyncValidation.d.ts +4 -4
- package/dist/Reducers/Hub2/asyncValidationResponse.d.ts +4 -0
- package/dist/Reducers/Hub2/formChange.d.ts +3 -3
- package/dist/Reducers/Hub2/index.d.ts +3 -3
- package/dist/Reducers/Hub2/mergeBranchErrors.d.ts +3 -3
- package/dist/Reducers/Hub2/mergeControls.d.ts +5 -5
- package/dist/Reducers/Hub2/mergeErrors.d.ts +2 -2
- package/dist/Reducers/Hub2/mergeRemoveControl.d.ts +6 -6
- package/dist/Reducers/index.d.ts +2 -2
- package/dist/RxForm/RxForm.d.ts +103 -99
- package/dist/RxForm/Tests/addControl.test.d.ts +1 -1
- package/dist/RxForm/Tests/combinedTest.test.d.ts +1 -1
- package/dist/RxForm/Tests/customReducers.test.d.ts +1 -1
- package/dist/RxForm/Tests/initialization.test.d.ts +1 -1
- package/dist/RxForm/Tests/load.test.d.ts +1 -1
- package/dist/RxForm/Tests/markControlAsPristine.test.d.ts +1 -1
- package/dist/RxForm/Tests/markControlTouchStatus.test.d.ts +1 -1
- package/dist/RxForm/Tests/pushControl.test.d.ts +1 -1
- package/dist/RxForm/Tests/removeControl.test.d.ts +1 -1
- package/dist/RxForm/Tests/resetControl.test.d.ts +1 -1
- package/dist/RxForm/Tests/updateValues.test.d.ts +1 -1
- package/dist/RxForm/index.d.ts +1 -1
- package/dist/Testing/AsyncValidators.d.ts +9 -8
- package/dist/Testing/Models/Contact.d.ts +11 -11
- package/dist/Testing/Models/DoctorInfo.d.ts +6 -6
- package/dist/Testing/Models/EmergencyContact.d.ts +6 -6
- package/dist/Testing/Models/initialState.d.ts +667 -667
- package/dist/Testing/Validators.d.ts +10 -10
- package/dist/Testing/asyncConfig.d.ts +3 -3
- package/dist/Testing/config.d.ts +3 -3
- package/dist/Validators/Validators.d.ts +4 -4
- package/dist/Validators/index.d.ts +1 -1
- package/dist/index.cjs +1213 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1064 -1075
- package/dist/index.js.map +1 -0
- package/package.json +10 -3
- package/dist/Reducers/Hub2/asyncValidationResponseSuccess.d.ts +0 -4
- package/dist/Reducers/Hub2/hub2Reducer.d.ts +0 -3
- package/dist/Testing/Effects.d.ts +0 -10
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Form } from '../../Models/Controls';
|
|
2
|
-
import { ControlRef } from '../../Models';
|
|
3
|
-
export declare const mergeBranchErrors: <T>(form: Form<T>, controlRef: ControlRef) => Form<T>;
|
|
1
|
+
import { Form } from '../../Models/Controls';
|
|
2
|
+
import { ControlRef } from '../../Models';
|
|
3
|
+
export declare const mergeBranchErrors: <T>(form: Form<T>, controlRef: ControlRef) => Form<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Form, FormControl, BaseFormState } from '../../Models/Controls';
|
|
2
|
-
export declare const mergeControls: <T>(state: Form<T>, { form, _changedControls, _removedControls }: BaseFormState<unknown>) => {
|
|
3
|
-
[x: string]: FormControl<unknown>;
|
|
4
|
-
root?: FormControl<unknown>;
|
|
5
|
-
};
|
|
1
|
+
import { Form, FormControl, BaseFormState } from '../../Models/Controls';
|
|
2
|
+
export declare const mergeControls: <T>(state: Form<T>, { form, _changedControls, _removedControls }: BaseFormState<unknown>) => {
|
|
3
|
+
[x: string]: FormControl<unknown>;
|
|
4
|
+
root?: FormControl<unknown>;
|
|
5
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Form } from '../../Models/Controls';
|
|
2
|
-
export declare const mergeErrors: <T>(form: Form<T>) => Form<T>;
|
|
1
|
+
import { Form } from '../../Models/Controls';
|
|
2
|
+
export declare const mergeErrors: <T>(form: Form<T>) => Form<T>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Form, BaseForm, FormControl } from '../../Models/Controls';
|
|
2
|
-
import { ControlRef } from '../../Models/ControlRef';
|
|
3
|
-
export declare const mergeRemoveControl: <T>(state: Form<T>, form: BaseForm<T>, controlRef: ControlRef) => {
|
|
4
|
-
[x: string]: FormControl<unknown>;
|
|
5
|
-
root?: FormControl<unknown>;
|
|
6
|
-
};
|
|
1
|
+
import { Form, BaseForm, FormControl } from '../../Models/Controls';
|
|
2
|
+
import { ControlRef } from '../../Models/ControlRef';
|
|
3
|
+
export declare const mergeRemoveControl: <T>(state: Form<T>, form: BaseForm<T>, controlRef: ControlRef) => {
|
|
4
|
+
[x: string]: FormControl<unknown>;
|
|
5
|
+
root?: FormControl<unknown>;
|
|
6
|
+
};
|
package/dist/Reducers/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './Hub1';
|
|
2
|
-
export * from './Hub2';
|
|
1
|
+
export * from './Hub1';
|
|
2
|
+
export * from './Hub2';
|
package/dist/RxForm/RxForm.d.ts
CHANGED
|
@@ -1,99 +1,103 @@
|
|
|
1
|
-
import { Reactable,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export type
|
|
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
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
1
|
+
import { Reactable, Action, Effect, ScopedEffects, ActionMap, DestroyAction } from '@reactables/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { UpdateValuesPayload, AddControlPayload, MarkTouchedPayload, PushControlPayload } from '../Models/Payloads';
|
|
4
|
+
import { ControlRef } from '../Models';
|
|
5
|
+
import { FormControlConfig, FormArrayConfig, FormGroupConfig, AbstractControlConfig } from '../Models/Configs';
|
|
6
|
+
import { ValidatorFn, ValidatorAsyncFn } from '../Models/Validators';
|
|
7
|
+
import { Form, BaseFormState } from '../Models/Controls';
|
|
8
|
+
type FbControl<T> = [T, (string | string[])?, (string | string[])?];
|
|
9
|
+
export declare const control: <T>(config: FormControlConfig<T> | FbControl<T>) => FormControlConfig<T>;
|
|
10
|
+
export declare const array: (config: FormArrayConfig) => FormArrayConfig;
|
|
11
|
+
export declare const group: (config: FormGroupConfig) => FormGroupConfig;
|
|
12
|
+
export type RxFormActions = {
|
|
13
|
+
updateValues: <T>(payload: UpdateValuesPayload<T>) => void;
|
|
14
|
+
addControl: (payload: AddControlPayload) => void;
|
|
15
|
+
pushControl: (payload: PushControlPayload) => void;
|
|
16
|
+
removeControl: (payload: ControlRef) => void;
|
|
17
|
+
markControlAsPristine: (payload: ControlRef) => void;
|
|
18
|
+
markControlAsTouched: (payload: MarkTouchedPayload) => void;
|
|
19
|
+
markControlAsUntouched: (payload: ControlRef) => void;
|
|
20
|
+
resetControl: (payload: ControlRef) => void;
|
|
21
|
+
} & ActionMap;
|
|
22
|
+
export interface FormReducers {
|
|
23
|
+
updateValues: <T>(state: BaseFormState<T>, payload: UpdateValuesPayload<unknown>) => BaseFormState<T>;
|
|
24
|
+
removeControl: <T>(state: BaseFormState<T>, payload: ControlRef) => BaseFormState<T>;
|
|
25
|
+
pushControl: <T>(state: BaseFormState<T>, payload: PushControlPayload) => BaseFormState<T>;
|
|
26
|
+
addControl: <T>(state: BaseFormState<T>, payload: AddControlPayload) => BaseFormState<T>;
|
|
27
|
+
markControlAsPristine: <T>(state: BaseFormState<T>, payload: ControlRef) => BaseFormState<T>;
|
|
28
|
+
markControlAsTouched: <T>(state: BaseFormState<T>, payload: MarkTouchedPayload) => BaseFormState<T>;
|
|
29
|
+
markControlAsUntouched: <T>(state: BaseFormState<T>, payload: ControlRef) => BaseFormState<T>;
|
|
30
|
+
resetControl: <T>(state: BaseFormState<T>, payload: ControlRef) => BaseFormState<T>;
|
|
31
|
+
}
|
|
32
|
+
export type CustomReducerFunc<T = unknown> = (reducers: FormReducers, state: BaseFormState<unknown>, action: Action<T>) => BaseFormState<unknown>;
|
|
33
|
+
export type CustomReducer = CustomReducerFunc | {
|
|
34
|
+
reducer: CustomReducerFunc;
|
|
35
|
+
effects?: Effect<unknown, unknown>[] | ((payload?: unknown) => ScopedEffects<unknown>);
|
|
36
|
+
};
|
|
37
|
+
export type CustomReducers<T> = {
|
|
38
|
+
[key in keyof (T & {
|
|
39
|
+
[key: string]: CustomReducer;
|
|
40
|
+
})]: CustomReducer;
|
|
41
|
+
};
|
|
42
|
+
export type ActionCreatorTypeFromCustomReducer<T> = T extends (reducers: FormReducers, state: BaseFormState<unknown>) => BaseFormState<unknown> ? () => void : T extends CustomReducerFunc<infer P> ? (payload: P) => void : T extends {
|
|
43
|
+
reducer: (reducers: FormReducers, state: BaseFormState<unknown>) => BaseFormState<unknown>;
|
|
44
|
+
} ? () => void : T extends {
|
|
45
|
+
reducer: CustomReducerFunc<infer P>;
|
|
46
|
+
} ? (payload: P) => void : never;
|
|
47
|
+
export interface RxFormOptions<T extends CustomReducers<unknown> = CustomReducers<unknown>> {
|
|
48
|
+
reducers?: T;
|
|
49
|
+
providers?: RxFormProviders;
|
|
50
|
+
name?: string;
|
|
51
|
+
debug?: boolean;
|
|
52
|
+
sources?: Observable<Action<unknown>>[];
|
|
53
|
+
}
|
|
54
|
+
type NormalizerFunction<T> = (value: T) => T;
|
|
55
|
+
export interface RxFormProviders {
|
|
56
|
+
normalizers?: {
|
|
57
|
+
[key: string]: NormalizerFunction<unknown>;
|
|
58
|
+
};
|
|
59
|
+
validators?: {
|
|
60
|
+
[key: string]: ValidatorFn;
|
|
61
|
+
};
|
|
62
|
+
asyncValidators?: {
|
|
63
|
+
[key: string]: ValidatorAsyncFn;
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export declare const build: <T extends CustomReducers<unknown>>(config: AbstractControlConfig, options?: RxFormOptions<T>) => Reactable<Form<unknown>, { [K in keyof T]: ActionCreatorTypeFromCustomReducer<T[K]>; } & {
|
|
67
|
+
updateValues: <T_1>(payload: UpdateValuesPayload<T_1>) => void;
|
|
68
|
+
addControl: (payload: AddControlPayload) => void;
|
|
69
|
+
pushControl: (payload: PushControlPayload) => void;
|
|
70
|
+
removeControl: (payload: ControlRef) => void;
|
|
71
|
+
markControlAsPristine: (payload: ControlRef) => void;
|
|
72
|
+
markControlAsTouched: (payload: MarkTouchedPayload) => void;
|
|
73
|
+
markControlAsUntouched: (payload: ControlRef) => void;
|
|
74
|
+
resetControl: (payload: ControlRef) => void;
|
|
75
|
+
} & ActionMap & DestroyAction, CustomReducerActionTypes<T> & FormActionTypes & {
|
|
76
|
+
destroy: 'destroy';
|
|
77
|
+
}>;
|
|
78
|
+
export declare const load: <Value, T extends CustomReducers<unknown>>(state: Form<Value>, options?: RxFormOptions<T>) => Reactable<Form<unknown>, { [K in keyof T]: ActionCreatorTypeFromCustomReducer<T[K]>; } & {
|
|
79
|
+
updateValues: <T_1>(payload: UpdateValuesPayload<T_1>) => void;
|
|
80
|
+
addControl: (payload: AddControlPayload) => void;
|
|
81
|
+
pushControl: (payload: PushControlPayload) => void;
|
|
82
|
+
removeControl: (payload: ControlRef) => void;
|
|
83
|
+
markControlAsPristine: (payload: ControlRef) => void;
|
|
84
|
+
markControlAsTouched: (payload: MarkTouchedPayload) => void;
|
|
85
|
+
markControlAsUntouched: (payload: ControlRef) => void;
|
|
86
|
+
resetControl: (payload: ControlRef) => void;
|
|
87
|
+
} & ActionMap & DestroyAction, CustomReducerActionTypes<T> & FormActionTypes & {
|
|
88
|
+
destroy: 'destroy';
|
|
89
|
+
}>;
|
|
90
|
+
type CustomReducerActionTypes<T extends CustomReducers<unknown>> = {
|
|
91
|
+
[K in keyof T as `${K & string}`]: `${K & string}`;
|
|
92
|
+
};
|
|
93
|
+
type FormActionTypes = {
|
|
94
|
+
updateValues: 'updateValues';
|
|
95
|
+
addControl: 'addControl';
|
|
96
|
+
pushControl: 'pushControl';
|
|
97
|
+
removeControl: 'removeControl';
|
|
98
|
+
markControlAsPristine: 'markControlAsPristine';
|
|
99
|
+
markControlAsTouched: 'markControlAsTouched';
|
|
100
|
+
markControlAsUntouched: 'markControlAsUntouched';
|
|
101
|
+
resetControl: 'resetControl';
|
|
102
|
+
};
|
|
103
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/dist/RxForm/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { build, load, group, array, control, RxFormActions, CustomReducer, CustomReducers, FormReducers, RxFormOptions, RxFormProviders, } from './RxForm';
|
|
1
|
+
export { build, load, group, array, control, RxFormActions, CustomReducer, CustomReducers, FormReducers, RxFormOptions, RxFormProviders, } from './RxForm';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ValidatorAsyncFn } from '../Models/Validators';
|
|
2
|
-
export declare const uniqueEmail: ValidatorAsyncFn;
|
|
3
|
-
export declare const noError: ValidatorAsyncFn;
|
|
4
|
-
export declare const noError2: ValidatorAsyncFn;
|
|
5
|
-
export declare const blacklistedEmail: ValidatorAsyncFn;
|
|
6
|
-
export declare const arrayLengthError: ValidatorAsyncFn;
|
|
7
|
-
export declare const uniqueFirstAndLastName: ValidatorAsyncFn;
|
|
8
|
-
export declare const blacklistedDoctorType: ValidatorAsyncFn;
|
|
1
|
+
import { ValidatorAsyncFn } from '../Models/Validators';
|
|
2
|
+
export declare const uniqueEmail: ValidatorAsyncFn;
|
|
3
|
+
export declare const noError: ValidatorAsyncFn;
|
|
4
|
+
export declare const noError2: ValidatorAsyncFn;
|
|
5
|
+
export declare const blacklistedEmail: ValidatorAsyncFn;
|
|
6
|
+
export declare const arrayLengthError: ValidatorAsyncFn;
|
|
7
|
+
export declare const uniqueFirstAndLastName: ValidatorAsyncFn;
|
|
8
|
+
export declare const blacklistedDoctorType: ValidatorAsyncFn;
|
|
9
|
+
export declare const debouncedUniqueName: ValidatorAsyncFn;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { EmergencyContact } from './EmergencyContact';
|
|
2
|
-
import { DoctorInfo } from './DoctorInfo';
|
|
3
|
-
export interface Contact {
|
|
4
|
-
firstName: string;
|
|
5
|
-
lastName: string;
|
|
6
|
-
email: string;
|
|
7
|
-
phone: string;
|
|
8
|
-
occupation?: string;
|
|
9
|
-
emergencyContacts: EmergencyContact[];
|
|
10
|
-
doctorInfo: DoctorInfo;
|
|
11
|
-
}
|
|
1
|
+
import { EmergencyContact } from './EmergencyContact';
|
|
2
|
+
import { DoctorInfo } from './DoctorInfo';
|
|
3
|
+
export interface Contact {
|
|
4
|
+
firstName: string;
|
|
5
|
+
lastName: string;
|
|
6
|
+
email: string;
|
|
7
|
+
phone: string;
|
|
8
|
+
occupation?: string;
|
|
9
|
+
emergencyContacts: EmergencyContact[];
|
|
10
|
+
doctorInfo: DoctorInfo;
|
|
11
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export interface DoctorInfo {
|
|
2
|
-
firstName: string;
|
|
3
|
-
lastName: string;
|
|
4
|
-
email: string;
|
|
5
|
-
type?: string;
|
|
6
|
-
}
|
|
1
|
+
export interface DoctorInfo {
|
|
2
|
+
firstName: string;
|
|
3
|
+
lastName: string;
|
|
4
|
+
email: string;
|
|
5
|
+
type?: string;
|
|
6
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export interface EmergencyContact {
|
|
2
|
-
firstName: string;
|
|
3
|
-
lastName: string;
|
|
4
|
-
email: string;
|
|
5
|
-
relation: string;
|
|
6
|
-
}
|
|
1
|
+
export interface EmergencyContact {
|
|
2
|
+
firstName: string;
|
|
3
|
+
lastName: string;
|
|
4
|
+
email: string;
|
|
5
|
+
relation: string;
|
|
6
|
+
}
|