-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmod.ts
45 lines (42 loc) · 1.31 KB
/
mod.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
// Copyright 2018-2022 Gamebridge.ai authors. All rights reserved. MIT license.
// This module is browser compatible.
/** property decorator */
export { SerializeProperty } from "./serialize_property.ts";
/** types */
export type {
Clone,
FromJSON,
JSONObject,
JSONValue,
Serialize,
ToJSON,
TransformKey,
} from "./serializable.ts";
/** abstract class */
export { Serializable } from "./serializable.ts";
/** strategy helper */
export { composeStrategy } from "./strategy/compose_strategy.ts";
/** types */
export type {
FromJSONStrategy,
ToJSONStrategy,
} from "./strategy/compose_strategy.ts";
/** strategies */
export { toSerializable } from "./strategy/from_json/to_serializable.ts";
export { fromSerializable } from "./strategy/to_json/from_serializable.ts";
export { toObjectContaining } from "./strategy/from_json/to_object_containing.ts";
export { fromObjectContaining } from "./strategy/to_json/from_object_containing.ts";
export { createDateStrategy, iso8601Date } from "./strategy/from_json/date.ts";
/** polymorphic classes */
export {
polymorphicClassFromJSON,
PolymorphicResolver,
PolymorphicSwitch,
} from "./polymorphic.ts";
/** types */
export type {
InitializerFunction,
PropertyValueTest,
ResolverFunction,
} from "./polymorphic.ts";
export { getNewSerializable } from "./strategy/utils.ts";