{"id":23789961,"url":"https://github.com/blackglory/json-rpc-types","last_synced_at":"2026-02-10T17:32:07.423Z","repository":{"id":57285154,"uuid":"466521041","full_name":"BlackGlory/json-rpc-types","owner":"BlackGlory","description":"🌳","archived":false,"fork":false,"pushed_at":"2024-12-13T02:11:24.000Z","size":119,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-04T10:05:48.227Z","etag":null,"topics":["browser","library","nodejs","npm-package","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/json-rpc-types","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BlackGlory.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-05T17:24:20.000Z","updated_at":"2025-01-24T15:30:45.000Z","dependencies_parsed_at":"2023-01-29T19:02:53.270Z","dependency_job_id":null,"html_url":"https://github.com/BlackGlory/json-rpc-types","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/BlackGlory/json-rpc-types","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Fjson-rpc-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Fjson-rpc-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Fjson-rpc-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Fjson-rpc-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BlackGlory","download_url":"https://codeload.github.com/BlackGlory/json-rpc-types/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Fjson-rpc-types/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274222489,"owners_count":25244063,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser","library","nodejs","npm-package","typescript"],"created_at":"2025-01-01T17:17:49.066Z","updated_at":"2026-02-10T17:32:07.393Z","avatar_url":"https://github.com/BlackGlory.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json-rpc-types\n## Install\n```sh\nnpm install --save json-rpc-types\n# or\nyarn add json-rpc-types\n```\n\n## API\n```ts\ntype JsonRpcId = string | number\ntype JsonRpcParams\u003cT\u003e = T[] | Record\u003cstring, T\u003e\n\ninterface JsonRpcNotification\u003cT\u003e {\n  jsonrpc: '2.0'\n  method: string\n  params?: JsonRpcParams\u003cT\u003e\n}\n\ninterface JsonRpcRequest\u003cT\u003e {\n  jsonrpc: '2.0'\n  id: JsonRpcId\n  method: string\n  params?: JsonRpcParams\u003cT\u003e\n}\n\ntype JsonRpcResponse\u003cT\u003e =\n| JsonRpcSuccess\u003cT\u003e\n| JsonRpcError\u003cT\u003e\n\ninterface JsonRpcSuccess\u003cT\u003e {\n  jsonrpc: '2.0'\n  id: JsonRpcId\n  result: T\n}\n\ninterface JsonRpcError\u003cT\u003e {\n  jsonrpc: '2.0'\n  id: JsonRpcId\n  error: JsonRpcErrorObject\u003cT\u003e\n}\n\ninterface JsonRpcErrorObject\u003cT\u003e {\n  code: number\n  message: string\n  data?: T\n}\n\nfunction isJsonRpcNotification\u003cT\u003e(val: unknown): val is JsonRpcNotification\u003cT\u003e\nfunction isntJsonRpcNotification\u003cT\u003e(\n  val: T\n): val is Exclude\u003cT, JsonRpcNotification\u003cunknown\u003e\u003e\n\nfunction isJsonRpcRequest\u003cT\u003e(val: unknown): val is JsonRpcRequest\u003cT\u003e\nfunction isntJsonRpcRequest\u003cT\u003e(val: T): val is Exclude\u003cT, JsonRpcRequest\u003cunknown\u003e\u003e\n\nfunction isJsonRpcSuccess\u003cT\u003e(val: unknown): val is JsonRpcSuccess\u003cT\u003e\nfunction isntJsonRpcSuccess\u003cT\u003e(val: T): val is Exclude\u003cT, JsonRpcSuccess\u003cunknown\u003e\u003e\n\nfunction isJsonRpcError\u003cT\u003e(val: unknown): val is JsonRpcError\u003cT\u003e\nfunction isntJsonRpcError\u003cT\u003e(val: T): val is Exclude\u003cT, JsonRpcError\u003cunknown\u003e\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackglory%2Fjson-rpc-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblackglory%2Fjson-rpc-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackglory%2Fjson-rpc-types/lists"}