Seyyed Morteza Moosavi

Results 21 comments of Seyyed Morteza Moosavi

and `IsNotAssignable` type

It is about readability. ```ts type doTest = AssertTrue< IsNotAssignable< ActionListener, ActionListener >, > ``` or ```ts type doTest = AssertTrue< IsAssignable< ActionListener, ActionListener >, > ```

potential implementation `true` if `T` is assignable to `U` ```ts type IsAssignable = T extends U ? true : false ``` example: ```ts type IsAssignable = T extends U ?...

For admin/user use case you can use `require.ensure(dependencies, callback)` to load module async. [more detail](https://webpack.github.io/docs/code-splitting.html#commonjs-require-ensure) but I like create-react-app support multiple entry/bundle.

Can we use inheritance for authorization? (related to #26) example: we have `ProfileNode` and has tow subclass `PublicProfileNode` and `PrivateProfileNode`. when we want resolve `ProfileNode` if `context.user == profile.user or...

I suggest everyone in this thread see this [video](https://youtu.be/bRnu7xvU1_Y?t=2310) after 38:30 until 41:15 # Authentication who you are? It should be done in the transport layer (HTTP). and Django context...

Is there any decorator function we can add around these functions and collect data required by debug-toolbar? ```python @collect_debug_toolbar_data def get_data(): # pure django async def async_get_data(): return await sync_to_async(get_data,...

maybe it's possible to wrap/runtime patch [`sync_to_async`][sync_to_async]. all async function using django orm should use this function and without `sync_to_async` function causing error. ```py def sync_to_async(func=None, thread_sensitive=True): if func is...

can we have multiple `derive_fields`? it would be awesome if we can. file1: ```rust #[derive(GraphQLObjectInfo)] #[graphql(scalar = DefaultScalarValue)] struct Obj { regular_field: bool, } #[juniper::graphql_object(derive_fields)] impl Obj { fn custom_field_resolve()...

it appears if only one file has one extension (e.g. `y.hbs`) ``` ls templates -a .x.hbs a.b.c.hbs y.hbs ``` generated files: ``` .x.hbs a.b.c y.hbs ```