{"name":"webmcp-types","version":"0.1.7","keywords":["webmcp","typescript","types"],"license":"MIT","_id":"webmcp-types@0.1.7","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":"e2c98b67c1c13dd0666108934711714166ff4080","tarball":"http://registry-npm.ywwl.com/webmcp-types/download/webmcp-types-0.1.7.tgz","fileCount":4,"integrity":"sha512-70YszESbCx+ozBejmBPTSc0hMyXim+/Kpj8UOZsHd36ANcYqIfkDbMBTTn5y+tQzQYUYN1x2R+5PseKJtVaLqA==","signatures":[{"sig":"MEQCIFatyuxDdg6sQH6eIcRem0uLlCDPzHdyy3uMDxv+u4ioAiBHjOuu8G3XX1MaB4cjaHx5qJjnNOQ/ke/akLDP2VGhEQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/webmcp-types@0.1.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":12603,"size":4319,"noattachment":false,"key":"/webmcp-types/-/webmcp-types-0.1.7.tgz"},"main":"","types":"index.d.ts","gitHead":"7bd77456882fa510c6b51eba3c2c0d3ad85df33f","scripts":{"test":"vitest run --typecheck.only && tsc -p tsconfig.json --strictNullChecks false"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:06caa6b2-dd97-4de5-85cd-73264deef93f"}},"repository":{"url":"git+https://github.com/webmachinelearning/webmcp-types.git","type":"git"},"_npmVersion":"11.19.0","description":"TypeScript type definitions for WebMCP","directories":{},"_nodeVersion":"24.20.0","_hasShrinkwrap":false,"devDependencies":{"vitest":"4.1.11","typescript":"7.0.2"},"_npmOperationalInternal":{"tmp":"tmp/webmcp-types_0.1.7_1788848757388_0.6074648254836417","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":1788848757528,"_cnpm_publish_time":1788848757528,"dist-tags":{"latest":"0.2.0"}}