deepkit-framework
                                
                                 deepkit-framework copied to clipboard
                                
                                    deepkit-framework copied to clipboard
                            
                            
                            
                        A new full-featured and high-performance TypeScript framework
# Problem We all love type-safe interaction between system components. It's also a great idea to be able to use the same TypeScript types both in our server and client...
```ts import { typeOf, valuesOf, ReflectionClass, validate, is } from "@deepkit/type"; type Foo = T extends [...infer P extends string[], infer L] ? L : never type Bar = Foo...
The original [issue](https://github.com/deepkit/deepkit-framework/issues/455) was marked as complete even though it wasn't fixed. #### Reproduction ```ts function a(t: T): T { return b(t); } function b(t: T): T { return t;...
https://github.com/deepkit/deepkit-framework/blob/92315f91ed4295d77b8c7bb693e8cbf8d5d32b23/packages/type/src/reflection/processor.ts#L363 @SamJakob had a great idea about improving this error message. Quote from discord: > Totally - I love the way Flutter does it’s error messages, they basically explain the...
Test can be found here https://github.com/marcus-sa/ngkit/blob/be76fee58879546d42d3a33ab8afe3a4055a1a7a/packages/core/src/lib/router/process.spec.ts#L78-L84 ``` Error: Uncaught (in promise): TypeError: Converting circular structure to JSON --> starting at object with constructor 'RouterStateSnapshot' | property '_root' -> object with...
Deepkit Broker has been around for quiet some time, but played a niche role. Mainly in the Debugger GUI (profiler) to collect data from all workers and publish it to...
Is there any way to use RPC with HTTP streaming? Like to transfer a file as a stream via RPC? If yes, are there any examples how to do it?...
i am trying to define a controller in its own file with a body param like this: import { http, HttpBody, JSONResponse } from "@deepkit/http" export class TestAPI2 { @http.PUT('/testParams')...
``` 33 | * 34 | * @public 35 | */ 36 | export class CustomError extends Error { 37 | constructor(message = '') { 38 | super(message); ^ DependenciesUnmetError:...
``` Uncaught (in promise) RangeError: Maximum call stack size exceeded at self (eval at build (compiler.ts:95:20), :16:20) at deserialize2 (serializer-facade.ts:52:12) ``` Only happens in the browser when using `deserialize` because...