Skip to content
This repository was archived by the owner on Sep 13, 2022. It is now read-only.
This repository was archived by the owner on Sep 13, 2022. It is now read-only.

type definition of Client4 don't match api definition #1022

@marknelissen

Description

@marknelissen

Submit feature requests to http://www.mattermost.org/feature-requests/. File non-security related bugs here in the following format:

Summary

type definition of Client4 don't match api definition on api.mattermost.com

Environment Information

  • Webapp or React Native app: Webapp
  • Mattermost-redux Version: 5.18.0

Steps to reproduce

Try to make use of the createPost function with a structure only containing:

  • channel_id
  • message
  • props

This is only one example. Another is the mandatory timestamp attribute for the getFileThumbnailUrl and getFileUrl, while neither according to the documentation, nor the javascript code make it mandatory.

Expected behavior

Post creation endpoint is invoked.

Observed behavior

The code cannot compile since it expects a full post object, including all the date fields (create, update, ...)

Possible fixes

Revert to typing of 5.17.0.

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