@mirohq/websdk-types
TypeScript icon, indicating that this package has built-in type declarations

2.14.2 • Public • Published

Miro WebSDK v2 typings file

Provides typing for the Miro WebSDK v2.

Usage

Install the package

Using npm

npm install @mirohq/websdk-types

Using yarn

yarn add @mirohq/websdk-types

Using pnpm

pnpm add @mirohq/websdk-types

If you are working on a TypeScript project

Include the types file inside your tsconfig.json file like this:

{
  "compilerOptions": {
+   "typeRoots": [
+     "./node_modules/@types",
+     "./node_modules/@mirohq"
+   ]
  }
}

If you are working on a JavaScript project

This step does not add types to your project, but it improves your autocompletion experience. This typically works with all modern editors & IDEs. If you encounter an issue, check the documentation for your editor.

  1. Create the jsconfig.json file at the root of your project.

  2. Add the following

{
	"compilerOptions": {
		"typeRoots": ["./node_modules/@types", "./node_modules/@mirohq"]
	}
}
  1. You should be able to get autocompletion working inside your JavaScript project.

Package Sidebar

Install

npm i @mirohq/websdk-types

Weekly Downloads

2,800

Version

2.14.2

License

MIT

Unpacked Size

182 kB

Total Files

3

Last publish

Collaborators

  • bruderstein
  • dgavidia
  • yahor_bezzubau
  • frederico.estrela
  • lucasrollan_miro
  • mettin-miro
  • sander-miro
  • mirohq-admin
  • ahmedelgabri
  • m.lebedev
  • gasim.miro
  • dfosco_miro
  • jjanzicmiro