{"_id":"webmcp-types@0.1.10","bugs":{"url":"https://github.com/webmachinelearning/webmcp-types/issues"},"dist":{"shasum":"95d578140899e751461628c1357567be99f59fc0","tarball":"http://registry-npm.ywwl.com/webmcp-types/download/webmcp-types-0.1.10.tgz","fileCount":4,"integrity":"sha512-U4GQ1RpJ0tqCUt2ALMV9Pnhi+hsy8L31f/Q1v4mLVhW64r5sYhh+2+SjP/Lq4/9jP33vZgNkuRZARJl65A/ZIg==","signatures":[{"sig":"MEQCIFfVKulcHg+zlyEZGxTpVmFEMo7fMy3OjTHOgpGkhZSyAiAb6MyCEzapoWakpDLNqdw6rsrMnQn8SNVJCdjN1gJPBw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIF9JoqTS+jzkUQ6qNpWt1dHFx82rruFS4gRsWFxKdettAiEAmIpe/kXBRBFXJRUneDb0UOUcwl1dH9Ma0Twuifm/e04="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/webmcp-types@0.1.10","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15510,"size":4772,"noattachment":false,"key":"/webmcp-types/-/webmcp-types-0.1.10.tgz"},"main":"","name":"webmcp-types","types":"index.d.ts","gitHead":"a8d8292ff645b691bfdb529484d3c089e81e8c28","license":"MIT","scripts":{"test":"vitest run --typecheck.only && tsc -p tsconfig.json --strictNullChecks false"},"version":"0.1.10","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:06caa6b2-dd97-4de5-85cd-73264deef93f"}},"homepage":"https://github.com/webmachinelearning/webmcp-types","keywords":["webmcp","typescript","types"],"repository":{"url":"git+https://github.com/webmachinelearning/webmcp-types.git","type":"git"},"_npmVersion":"11.19.0","description":"TypeScript type definitions for WebMCP","directories":{},"maintainers":[{"name":"fbeaufort","email":"fbeaufort@google.com"}],"_nodeVersion":"24.21.0","_hasShrinkwrap":false,"devDependencies":{"vitest":"4.1.11","typescript":"7.0.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/webmcp-types_0.1.10_1790581480008_0.6611707336739465"},"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":1790581480103,"_cnpm_publish_time":1790581480103,"dist-tags":{"latest":"0.2.0"}}