Flavien Volken

Results 50 comments of Flavien Volken

Oh and nesting structs works as well ```typescript const struct = new Struct() .field("hello", "World") .field("foo", "bar") .build(); struct.hello struct.foo const struct2 = new Struct() .field("hello", "World") .field("struct", struct) .build();...

good, well right now I'm not using construct-js, I used it in a POC a few years ago, and I always thought about improving the typing as below. Note that,...

This works: ```ts import { ChangeDetectionStrategy, Component, input } from '@angular/core'; @Component({ selector: 'app-banner', standalone: true, imports: [], templateUrl: './banner.component.html', styleUrl: './banner.component.scss', changeDetection: ChangeDetectionStrategy.OnPush, }) export class BannerComponent { title...

[query/src/lib/utils.ts](https://github.com/Xample/query/blob/patch-1/query/src/lib/utils.ts)

For those who might be interested in typing the controls, here is the class I am using: form-group.ts ```ts import { FormArray, FormControl, FormGroup as TypedFormGroup } from 'ngx-typesafe-forms'; type...

I just updated my post replacing `extends object` with `extends Record` as we should only rely on the fact we do have a dictionary and not an object. For instance...

oh and before I forget, in order to use properly `Record` you need to distinguish [`Type Aliases` from `Interfaces`](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#differences-between-type-aliases-and-interfaces). Because both will not be cast the same way. For instance:...

Before deleting: ![image](https://github.com/pubkey/rxdb/assets/944605/fc0a4e45-e407-457b-8bfe-30c1956eccf6) none is correct. After deleting I've a mix of 'rxdb' and 'rxdb/dist/types/types' for instance this is what is automatically imported ```typescript import { MangoQuerySelector, MangoQuerySortDirection, MangoQuerySortPart, }...

and I'm not using vscode on my side

ok, to what I've seen, I should export the `RouteNodeMap` from my module which could be imported and included within the RouteNodeMap of another module and then always use the...