9.7.0 • Published 16 days ago

@mattermost/types v9.7.0

Weekly downloads
-
License
MIT
Repository
github
Last release
16 days ago

Mattermost Types

This package contains shared type definitions used by the Mattermost web app and related projects.

Usage

For technologies that support subpath exports, such as Node.js, Webpack, and Babel, you can import these types directly from individual files.

import {UserProfile} from '@mattermost/types/users';

For technologies that don't support that yet, you can add an alias in its package resolution settings to support that.

Jest

In your Jest config, you can use the moduleNameMapper field to add that alias.

{
    "moduleNameMapper": {
        "^@mattermost/types/(.*)$": "<rootDir>/node_modules/@mattermost/types/lib/$1"
    }
}

Compilation and Packaging

As a member of Mattermost with write access to our NPM organization, you can build and publish this package by running the following commands:

npm run build --workspace=platform/types
npm publish --workspace=platform/types

Make sure to increment the version number in package.json first! You can add -0, -1, etc for pre-release versions.

9.7.0

16 days ago

9.7.0-0

1 month ago

9.6.0

2 months ago

9.5.0

2 months ago

9.4.0

3 months ago

9.3.0

4 months ago

8.0.0

8 months ago

8.1.1

8 months ago

9.2.0

6 months ago

9.1.0

6 months ago

9.0.0

8 months ago

7.10.0

1 year ago

7.8.0

1 year ago

7.9.0

1 year ago

7.7.0

1 year ago

7.4.0

2 years ago

7.3.0

2 years ago

7.0.0

2 years ago

7.1.0

2 years ago

6.7.0-0

2 years ago