Socket
Book a DemoInstallSign in
Socket

asyncapi-types

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asyncapi-types

latest
Source
npmnpm
Version
3.0.2
Version published
Maintainers
0
Created
Source

asyncapi-types

npm npm downloads JSR JSR Score

Types for AsyncAPI in separate package.

Installation

Install types for v3 version of spec

npm i asyncapi-types@^3 -d

Install types for v2 version of spec

npm i asyncapi-types@^2 -d

Usage

import type { AsyncAPIObject } from "asyncapi-types";

const asyncapi: AsyncAPIObject = {
    asyncapi: "3.0.0",
    info: {
        title: "My API",
        version: "1.0.0",
    },
    channels: {
        "my-channel": {
            messages: {
                "my-message": {
                    payload: { type: "string" },
                },
            },
        },
    },
};

TODO

Thanks

This package is copy-pasted from @asyncapi/parser-js/spec-types with Apache 2.0 license to use only types and not the whole parser.

License

This project is licensed under the Apache 2.0 License.

FAQs

Package last updated on 03 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.