1.0.1-alpha.155 • Published 2 months ago

@deepkit/type v1.0.1-alpha.155

Weekly downloads
125
License
MIT
Repository
github
Last release
2 months ago

@deepkit/type

@deepkit/type is the by far fastest TypeScript serializer for JSON-representable data from JSON objects to class instances to database records and vice versa, written in and for TypeScript. @deepkit/type uses a JIT engine, generating highly optimized serialization functions on the fly. deepkit/type is an addition to JSON.parse(), not a replacement.

It introduces the concept of decorating your entity class or class methods once with all necessary decorators (like type declaration, indices, and relations) using only @deepkit/type's TypeScript decorators agnostic to any serialization target by saving only the metadata, and then use it everywhere: frontend, backend, CLI, database records, http-transport, rpc serialization, query parameter, DTOs, and database, including validations.

Features

  • Fastest serialization and validation thanks to a JIT engine. It's by far the fastest serialization library for both, Nodejs and browsers.
  • Supported types: String, Number, Boolean, Date, Moment.js, ArrayBuffer (binary), custom classes, Array, object maps, any.
  • Typed arrays: Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array
  • Cross referencing/Circular references using @t.type(() => MyClass)
  • Constructor support (required property can be placed in constructor) making it suitable for Typescript strict compiling
  • Validation: Built-in, custom class and inline validators
  • Decorated property values (e.g. JSON uses plain Array, class instance uses a custom Collection class)
  • Partial/Patch serialising (ideal for serialising JSON Patch and the like)
  • Complex models with parent references
  • Support declaring method arguments and return type for method serialization
  • Implicit type detection as far as Typescript allows it technically
  • Supports getters
  • One decorator for all. Best and most efficient UX possible, with full type hinting support
  • Soft type castings (so implicit cast from number -> string, if necessary)
1.0.1-alpha.155

2 months ago

1.0.1-alpha.154

4 months ago

1.0.1-alpha.153

7 months ago

1.0.1-alpha.151

7 months ago

1.0.1-alpha.150

8 months ago

1.0.1-alpha.149

8 months ago

1.0.1-alpha.148

8 months ago

1.0.1-alpha.147

8 months ago

1.0.1-alpha.146

8 months ago

1.0.1-alpha.145

9 months ago

1.0.1-alpha.143

9 months ago

1.0.1-alpha.142

10 months ago

1.0.1-alpha.141

10 months ago

1.0.1-alpha.140

10 months ago

1.0.1-alpha.139

10 months ago

1.0.1-alpha.138

10 months ago

1.0.1-alpha.137

10 months ago

1.0.1-alpha.132

11 months ago

1.0.1-alpha.131

11 months ago

1.0.1-alpha.124

11 months ago

1.0.1-alpha.123

11 months ago

1.0.1-alpha.121

11 months ago

1.0.1-alpha.120

11 months ago

1.0.1-alpha.119

11 months ago

1.0.1-alpha.117

11 months ago

1.0.1-alpha.116

11 months ago

1.0.1-alpha.114

11 months ago

1.0.1-alpha.113

11 months ago

1.0.1-alpha.112

11 months ago

1.0.1-alpha.111

11 months ago

1.0.1-alpha.110

12 months ago

1.0.1-alpha.109

12 months ago

1.0.1-alpha.105

1 year ago

1.0.1-alpha.102

1 year ago

1.0.1-alpha.100

1 year ago

1.0.1-alpha.101

1 year ago

1.0.1-alpha.108

1 year ago

1.0.1-alpha.95

2 years ago

1.0.1-alpha.94

2 years ago

1.0.1-alpha.93

2 years ago

1.0.1-alpha.97

2 years ago

1.0.1-alpha.96

2 years ago

1.0.1-alpha.92

2 years ago

1.0.1-alpha.91

2 years ago

1.0.1-alpha.90

2 years ago

1.0.1-alpha.89

2 years ago

1.0.1-alpha.87

2 years ago

1.0.1-alpha.86

2 years ago

1.0.1-alpha.77

2 years ago

1.0.1-alpha.84

2 years ago

1.0.1-alpha.83

2 years ago

1.0.1-alpha.85

2 years ago

1.0.1-alpha.72

2 years ago

1.0.1-alpha.75

2 years ago

1.0.1-alpha.74

2 years ago

1.0.1-alpha.68

3 years ago

1.0.1-alpha.67

3 years ago

1.0.1-alpha.65

3 years ago

1.0.1-alpha.63

3 years ago

1.0.1-alpha.71

3 years ago

1.0.1-alpha.70

3 years ago

1.0.1-alpha.62

3 years ago

1.0.1-alpha.61

3 years ago

1.0.1-alpha.59

3 years ago

1.0.1-alpha.58

3 years ago

1.0.1-alpha.56

3 years ago

1.0.1-alpha.52

3 years ago

1.0.1-alpha.48

3 years ago

1.0.1-alpha.51

3 years ago

1.0.1-alpha.44

3 years ago

1.0.1-alpha.43

3 years ago

1.0.1-alpha.42

3 years ago

1.0.1-alpha.40

3 years ago

1.0.1-alpha.39

3 years ago

1.0.1-alpha.35

3 years ago

1.0.1-alpha.34

3 years ago

1.0.1-alpha.33

4 years ago

1.0.1-alpha.31

4 years ago

1.0.1-alpha.30

4 years ago

1.0.1-alpha.29

4 years ago

1.0.1-alpha.28

4 years ago

1.0.1-alpha.27

4 years ago

1.0.1-alpha.25

4 years ago

1.0.1-alpha.24

4 years ago

1.0.1-alpha.22

4 years ago

1.0.1-alpha.21

4 years ago

1.0.1-alpha.20

4 years ago

1.0.1-alpha.19

4 years ago

1.0.1-alpha.18

4 years ago

1.0.1-alpha.16

4 years ago

1.0.1-alpha.13

4 years ago

1.0.1-alpha.12

4 years ago

1.0.1-alpha.11

4 years ago

1.0.1-alpha.10

4 years ago

1.0.1-alpha.9

4 years ago

1.0.1-alpha.8

4 years ago

1.0.1-alpha.7

4 years ago

1.0.1-alpha.6

4 years ago

1.0.1-alpha.5

4 years ago

1.0.1-alpha.4

4 years ago

1.0.1-alpha.3

4 years ago

1.0.1-alpha.1

4 years ago

1.0.1-alpha.0

4 years ago

1.0.0-alpha.19

4 years ago

1.0.0-alpha.21

4 years ago

1.0.0-alpha.20

4 years ago

1.0.0-alpha.16

4 years ago

1.0.0-alpha.15

4 years ago

1.0.0-alpha.18

4 years ago

1.0.0-alpha.17

4 years ago

1.0.0-alpha.14

4 years ago

1.0.0-alpha.13

4 years ago

1.0.0-alpha.9

4 years ago

1.0.0-alpha.8

4 years ago

1.0.0-alpha.10

4 years ago

1.0.0-alpha.12

4 years ago

1.0.0-alpha.11

4 years ago

1.0.0-alpha.7

4 years ago

1.0.0-alpha.6

4 years ago

1.0.0-alpha.5

4 years ago

1.0.0-alpha.4

4 years ago

1.0.0-y.0

4 years ago

1.0.0-alpha.3

4 years ago