@mirohq/websdk-types
v2.17.2
Published
Provides typing for the Miro WebSDK v2.
Downloads
18,419
Readme
Miro WebSDK v2 typings file
Provides typing for the Miro WebSDK v2.
Usage
Install the package
Using npm
npm install @mirohq/websdk-typesUsing yarn
yarn add @mirohq/websdk-typesUsing pnpm
pnpm add @mirohq/websdk-typesIf 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.
Create the
jsconfig.jsonfile at the root of your project.Add the following
{
"compilerOptions": {
"typeRoots": ["./node_modules/@types", "./node_modules/@mirohq"]
}
}- You should be able to get autocompletion working inside your JavaScript project.
