{"name":"webmcp-types","version":"0.1.2","keywords":["webmcp","typescript","types"],"license":"MIT","_id":"webmcp-types@0.1.2","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":"f217498ac748a6bc3dbe5025a90f574cf2bfe316","tarball":"http://registry-npm.ywwl.com/webmcp-types/download/webmcp-types-0.1.2.tgz","fileCount":4,"integrity":"sha512-weWM+Iyj7rITLBoANf3GjxOD25MgriZnKUafJOXErmOnTbbHp5kr7hcPl+UlfeSlwtvE8+55HozF6jxtv0j17g==","signatures":[{"sig":"MEYCIQCHIgmttibaeY+txxqTqzTekp2fqtLF8D/l9nHj15UJkwIhAKfRNqCtFQ4X9yhEZrgHEtbEWcGGdDS1F1X2ub2rMJKf","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7644,"size":3179,"noattachment":false,"key":"/webmcp-types/-/webmcp-types-0.1.2.tgz"},"main":"","types":"index.d.ts","gitHead":"8c908e76ae38883245fadc3eb576a73429ac550a","_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,"_npmOperationalInternal":{"tmp":"tmp/webmcp-types_0.1.2_1783346966620_0.5411605379381084","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":1783346966761,"_cnpm_publish_time":1783346966761,"dist-tags":{"latest":"0.2.0"}}