JavaScript vs TypeScript

Muxy’s MEDKit SDK is written entirely in TypeScript. If you are using TypeScript in your project, all type definitions are exported and usable directly.

import Muxy from `@muxy/extension-js`;

function processVoteData(data: Muxy.VoteData) {
  console.log(`Total votes: ${data.sum}`);
}

If you are using JavaScript, you can use the MEDKit as-is, as we ship transpiled versions.

function processVoteData(data) {
  console.log(`Total votes: ${data.sum}`);
}