{"versions":{"1.0.0":{"name":"@types/use-subscription","version":"1.0.0","description":"TypeScript definitions for use-subscription","license":"MIT","contributors":[{"name":"Sebastian Silbermann","url":"https://github.com/eps1lon","githubUsername":"eps1lon"}],"main":"","types":"index","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/use-subscription"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"3fb378da5a403646d1a46ab137f9bbe1f6b839845b73f2f18b2928b6d0b80072","typeScriptVersion":"2.8","_id":"@types/use-subscription@1.0.0","dist":{"shasum":"d146f8d834f70f50d48bd8246a481d096f11db19","size":1687,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/use-subscription/-/use-subscription-1.0.0.tgz"},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-subscription_1.0.0_1569361782075_0.19889457568928282"},"_hasShrinkwrap":false,"publish_time":1569361782206,"_cnpm_publish_time":1569361782206},"1.0.1":{"name":"@types/use-subscription","version":"1.0.1","description":"TypeScript definitions for use-subscription","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/use-subscription","license":"MIT","contributors":[{"name":"Sebastian Silbermann","githubUsername":"eps1lon","url":"https://github.com/eps1lon"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/use-subscription"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"fcf58578a7ad3576dca0ad17ac98559c420d2783750afd4d76616a6f97be1928","typeScriptVersion":"4.5","_id":"@types/use-subscription@1.0.1","dist":{"integrity":"sha512-7K3QXyUqk2/E06AfSZydypg/i1OUj3zhp3JUsZv8HKo6FxYAxfYshCiLLlz7C1vgtI++1FrJfJpOC1Xw/1wOlA==","shasum":"fa63951b40109e0a626f81fb7fd0b79482c1b57b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/use-subscription/-/use-subscription-1.0.1.tgz","fileCount":5,"unpackedSize":3567,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyccZndqIoxEa5z7EaTTd4apwD/g1uRZyDW0HwcsXZqgIhAPCN6u5diinBc4txkbGdQVfD9pGxcyuhAXDGfK79veqf"}]},"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-subscription_1.0.1_1697648984701_0.9437779291610116"},"_hasShrinkwrap":false},"1.0.2":{"name":"@types/use-subscription","version":"1.0.2","description":"TypeScript definitions for use-subscription","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/use-subscription","license":"MIT","contributors":[{"name":"Sebastian Silbermann","githubUsername":"eps1lon","url":"https://github.com/eps1lon"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/use-subscription"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"2882828e95b5477d3e5b8854a86c16a02d2f465fa4912fa4799b908adc1b91ad","typeScriptVersion":"4.5","_id":"@types/use-subscription@1.0.2","dist":{"integrity":"sha512-k6CBZX+wR2Ad6/dIrznyyf8foRNVIvMvbwC/aKE2SZ691OpuNfqUkixMCD+e0dH/iEOHlvVZbg7TuRBdraBeEQ==","shasum":"cab718dec61dd3a34d67d4176bc2f8d7dbc9ce83","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/use-subscription/-/use-subscription-1.0.2.tgz","fileCount":5,"unpackedSize":3567,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIERND4wiDc6hYOEiZ2MYqw6rJC2tvU1OhdZGgzkGvtGsAiAQAE97ruc8PEwDhLspVJFxGoeJQU/mpPeMQZXcPSrlSg=="}]},"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-subscription_1.0.2_1699382062280_0.19614676467645076"},"_hasShrinkwrap":false},"1.13.0":{"_id":"@types/use-subscription@1.13.0","dist":{"shasum":"692278b9c76e71c39f7f638f1abb121a51dd2f09","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/use-subscription/-/use-subscription-1.13.0.tgz","fileCount":5,"integrity":"sha512-ouWEfnrWfThIUseSsV8fF27S6q5zLSsBer8vwCKaxcfdCKfRNNqn0ViV7iFwIM2N6rjyO2NkasfbuEX0GgSjTQ==","signatures":[{"sig":"MEUCIFp4ANE+lDBUoIGa7KETeKQqk0JKym4wZ0WfNmpEwmkHAiEA3FEKMHVL/6C7MHQ4Lbp3TvmuFEwfRc5k3isyGr9OfzU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCEoYI5KcuX1Ttc5qOcjv+A4c/aIv8+X5y7wnbnAZBAQQIhAIZaJfsVt8c0TodpqGkaoGT6ct0TgMesePXD/a+YnDoh"}],"unpackedSize":3596,"size":1732},"main":"","name":"@types/use-subscription","types":"index.d.ts","license":"MIT","scripts":{},"version":"1.13.0","_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/use-subscription","repository":{"url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","type":"git","directory":"types/use-subscription"},"description":"TypeScript definitions for use-subscription","directories":{},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_nodeVersion":"24.20.0","contributors":[{"url":"https://github.com/eps1lon","name":"Sebastian Silbermann","githubUsername":"eps1lon"}],"dependencies":{},"_hasShrinkwrap":false,"peerDependencies":{},"typeScriptVersion":"5.6","_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/use-subscription_1.13.0_1788977243394_0.6011849913291094"},"typesPublisherContentHash":"297125a7c70732456f0bebfd7b2430340c1e23578800998f700fb4af071a8ce3","_cnpmcore_publish_time":"2026-09-09T18:07:23.480Z","publish_time":1788977243480,"_source_registry_name":"default"}},"dist-tags":{"latest":"1.13.0","ts2.8":"1.0.0","ts2.9":"1.0.0","ts3.0":"1.0.0","ts3.1":"1.0.0","ts3.2":"1.0.0","ts3.3":"1.0.0","ts3.4":"1.0.0","ts3.5":"1.0.0","ts3.6":"1.0.0","ts3.7":"1.0.0","ts3.8":"1.0.0","ts3.9":"1.0.0","ts4.0":"1.0.0","ts4.1":"1.0.0","ts4.2":"1.0.0","ts4.3":"1.0.0","ts4.4":"1.0.0","ts4.5":"1.0.2","ts4.6":"1.0.2","ts4.7":"1.0.2","ts4.8":"1.0.2","ts4.9":"1.0.2","ts5.0":"1.0.2","ts5.1":"1.0.2","ts5.2":"1.0.2","ts5.3":"1.0.2","ts5.4":"1.0.2","ts5.5":"1.0.2","ts5.6":"1.13.0","ts5.7":"1.13.0","ts5.8":"1.13.0","ts5.9":"1.13.0","ts6.0":"1.13.0"},"name":"@types/use-subscription","time":{"modified":"2026-09-09T18:07:39.282Z","created":"2022-01-27T19:44:32.086Z","1.0.0":"2019-09-24T21:49:42.206Z","1.0.1":"2023-10-18T17:09:44.906Z","1.0.2":"2023-11-07T18:34:22.454Z","1.13.0":"2026-09-09T18:07:23.480Z"},"readme":"# Installation\r\n> `npm install --save @types/use-subscription`\r\n\r\n# Summary\r\nThis package contains type definitions for use-subscription (https://github.com/facebook/react/).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/use-subscription.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/use-subscription/index.d.ts)\r\n````ts\r\nexport type Unsubscribe = () => void;\n\nexport interface Subscription<T> {\n    /**\n     * (Synchronously) returns the current value of our subscription.\n     */\n    getCurrentValue: () => T;\n    /**\n     * This function is passed an event handler to attach to the subscription.\n     * It must return an unsubscribe function that removes the handler.\n     */\n    subscribe: (callback: () => void) => Unsubscribe;\n}\n\nexport function useSubscription<T>(subscription: Subscription<T>): T;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Wed, 09 Sep 2026 18:05:03 GMT\r\n * Dependencies: none\r\n\r\n# Credits\r\nThese definitions were written by [Sebastian Silbermann](https://github.com/eps1lon).","users":{}}