{"name":"webmcp-types","version":"0.1.6","keywords":["webmcp","typescript","types"],"license":"MIT","_id":"webmcp-types@0.1.6","maintainers":[{"name":"fbeaufort","email":"fbeaufort@google.com"}],"homepage":"https://github.com/webmachinelearning/webmcp-types","bugs":{"url":"https://github.com/webmachinelearning/webmcp-types/issues"},"dist":{"shasum":"1d078c7e5eedb9f3d0298eb529b37094f8c884c9","tarball":"http://registry-npm.ywwl.com/webmcp-types/download/webmcp-types-0.1.6.tgz","fileCount":4,"integrity":"sha512-vWYNhhBXQhP4flPIk3sJuzsonPGSTdDyhWgpmPYCNdpIcLHJgjHE51lU0S7gi+UtdxO84FsCnvSJaMfLGWP+3Q==","signatures":[{"sig":"MEYCIQD1ui/2qBXtfbla6MRoOHVLq8F1GXCE17OMjEkzxiJ2iQIhANNQ485fLi0b/DWaMPOdtPZklbJn+bXNyCVDNczAWvi4","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12736,"size":4376,"noattachment":false,"key":"/webmcp-types/-/webmcp-types-0.1.6.tgz"},"main":"","types":"index.d.ts","gitHead":"83d3dd81ae9b8fea54f21d9796d0d25cbed16280","scripts":{"test":"vitest run --typecheck.only && tsc -p tsconfig.json --strictNullChecks false"},"_npmUser":{"name":"fbeaufort","email":"fbeaufort@google.com"},"repository":{"url":"git+https://github.com/webmachinelearning/webmcp-types.git","type":"git"},"_npmVersion":"11.12.1","description":"TypeScript type definitions for WebMCP","directories":{},"_nodeVersion":"25.9.0","_hasShrinkwrap":false,"devDependencies":{"vitest":"4.1.11","typescript":"7.0.2"},"_npmOperationalInternal":{"tmp":"tmp/webmcp-types_0.1.6_1788418498988_0.19026392251294344","host":"s3://npm-registry-packages-npm-production"},"readme":"# Typescript Type Definitions for WebMCP\n\nThis package defines Typescript types (`.d.ts`) for the [WebMCP specification](https://webmachinelearning.github.io/webmcp).\n\nUse this package to augment the ambient [`\"dom\"`](https://www.typescriptlang.org/docs/handbook/compiler-options.html#compiler-options) type definitions with the new definitions for WebMCP.\n\n## What are declaration files?\n\nSee the [TypeScript handbook](http://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html).\n\n\n## How can I use them?\n\n### Install\n\n- npm: `npm install --save-dev webmcp-types`\n- yarn: `yarn add --dev webmcp-types`\n- pnpm: `pnpm add -D webmcp-types`\n\nThis package requires TypeScript 5.0 or newer.\n\n### Configure\n\nSince this package is outside DefinitelyTyped, the dependency won't be picked up automatically.\nThere are several ways to add a additional TypeScript type definition dependencies to your TypeScript project:\n\n#### TypeScript `tsc` and `tsc`-based bundlers\n\nIn `tsconfig.json`:\n\n```js\n{\n  // ...\n  \"compilerOptions\": {\n    // ...\n    \"types\": [\"webmcp-types\"]\n  }\n}\n```\n\nOr you can use `typeRoots`:\n\n```js\n{\n  // ...\n  \"compilerOptions\": {\n    // ...\n    \"typeRoots\": [\"./node_modules/webmcp-types\", \"./node_modules/@types\"]\n  }\n}\n```\n\n#### Inline in TypeScript\n\nThis may work better if your toolchain doesn't read `tsconfig.json`.\n\n```ts\n/// <reference types=\"webmcp-types\" />\n```\n\n#### Webpack\n\nIf you use Webpack and the options above aren't sufficient (this has not been verified),\nyou may need the following in `webpack.config.js`:\n\n```js\n\"types\": [\"webmcp-types\"]\n```\n\n### Run the type tests\n\n- `npm install`\n- `npm test`\n\nThe tests in `index.test-d.ts` are statically checked with [Vitest typecheck mode](https://vitest.dev/guide/testing-types) against `tsconfig.json`; they are never executed.\n\n### Publish a new npm package version\n\n[Release Please](https://github.com/googleapis/release-please) keeps a release pull request open with the next version and changelog, based on [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) on `main`. Merging it creates the GitHub release and publishes to npm through [trusted publishing](https://docs.npmjs.com/trusted-publishers/); no npm token or local publish step is needed.\n","publish_time":1788418499124,"_cnpm_publish_time":1788418499124,"dist-tags":{"latest":"0.2.0"}}