mobius icon indicating copy to clipboard operation
mobius copied to clipboard

why are typedefs nullable?

Open scarf005 opened this issue 3 months ago • 0 comments

    /**
     * ! For type declaration only
     */
    klein: TypeDefs | null;
    /**
     * ! For type declaration only
     */
    resolvers: Resolver<TypeDefs> | null;

this makes extracting type from client less ergonomic as NonNullable is required:

type Foo = CreateQuery<NonNullable<(typeof client.klein)>>
type Query = Foo["Question"]

scarf005 avatar Sep 19 '25 02:09 scarf005