Skip to content

ShowResponse.model_info and projector_info incorrectly typed #232

@SkaceKamen

Description

@SkaceKamen

Issue

The typing provided by the package is incorrect, the typing claims the ShowResponse contains Map but since it's just a parsed JSON with no post-processing, the type is actually a Record.

model_info: Map<string, any>,

projector_info?: Map<string, any>

return (await response.json()) as ShowResponse

Solution

Both should be typed as Record instead of Map

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions