Skip to content

Commit 1d9f5b3

Browse files
authored
fix: allow undefined as request/notification params (#35)
Missed undefined type for params in JsonRpcPayloadRequest and JsonRpcPayloadNotification
1 parent 505d704 commit 1d9f5b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/json-rpc.type.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export type JsonRpcParamsSchemaByPositional = any[]
3030
export type JsonRpcParamsSchema =
3131
| JsonRpcParamsSchemaByName
3232
| JsonRpcParamsSchemaByPositional
33+
| undefined
3334

3435
export type PayloadTypeError = 'error'
3536
export type PayloadTypeNotification = 'notification'

0 commit comments

Comments
 (0)