Previously I didn't want to bother the ever changing options types, so they are all options: object,
|
export function createFromReadableStream<T>( |
|
stream: ReadableStream<Uint8Array>, |
|
options: object = {}, |
|
): Promise<T> { |
but it should be helpful for downstream users to provide just "best-effort maintained" latest RSC API options types. We can start with copying what Waku maintains in https://github.com/wakujs/waku/blob/2ce74ee2381f6c0593b8246f33043434706889fe/packages/waku/src/lib/react-types.d.ts#L95
Previously I didn't want to bother the ever changing options types, so they are all
options: object,vite-plugin-react/packages/plugin-rsc/src/react/browser.ts
Lines 7 to 10 in 87e505b
but it should be helpful for downstream users to provide just "best-effort maintained" latest RSC API options types. We can start with copying what Waku maintains in https://github.com/wakujs/waku/blob/2ce74ee2381f6c0593b8246f33043434706889fe/packages/waku/src/lib/react-types.d.ts#L95