NestarZ
Explore posts from serversIs it possible to do "for await (const iterator of db.selectFrom("table").selectAll()) {....}
I was looking here:
https://kysely.dev/docs
But you are right that's also the main documentation of the API, but the search is a bit less "natural"
7 replies
Why JSX is not working ?
And this
// @deno-types="@types/react"
import React from "react";
const A: React.FC = () => <div />;
const B: React.FC = () => <A />;
do
TS2786 [ERROR]: 'A' cannot be used as a JSX component.
Its type 'FC<{}>' is not a valid JSX element type.
Type 'FunctionComponent<{}>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
Type 'ReactElement<any, any> | null' is not assignable to type 'ReactNode'.
Type 'ReactElement<any, any>' is not assignable to type 'ReactNode'.
Property 'children' is missing in type 'ReactElement<any, any>' but required in type 'ReactPortal'.
const B: React.FC = () => <A />;
^
at file:///Users/code/bureaudouble/bureau/src/routes/Home.tsx:23:28
'children' is declared here.
children: ReactNode;
~~~~
at file:///Users/Library/Caches/deno/npm/registry.npmjs.org/@types/react/18.2.57/index.d.ts:326:9
3 replies