Skip to content

Provide types for RSC API re-exported from @vitejs/plugin-rsc #1153

@hi-ogawa

Description

@hi-ogawa

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions