Commit Graph

58 Commits

Author SHA1 Message Date
imjoey 39f11520f3 Fix the default value of waitForReady in doc
In my usecase, the default behavious of `waitForReady` for RPC is `false` that not in accord with the doc. After digging into the source codes, probably the doc is incorrect.

Signed-off-by: imjoey <majunjiev@gmail.com>
2019-10-29 14:55:34 +08:00
murgatroid99 4580356687 Merge remote-tracking branch 'upstream/grpc@1.23.x' into HEAD 2019-10-21 11:06:32 -07:00
GP ✅ 9114f34ea3
Fix #502 - Make all properties of CallOptions optional 2019-09-12 09:37:00 +05:30
murgatroid99 d434d132fc Duplicate relevant protobufjs type definition 2019-08-22 13:18:36 -07:00
Nathan Shively-Sanders d6866a837a Add comment for future additions 2019-08-22 12:46:33 -07:00
Nathan Shively-Sanders 24a14d7f04 Move EventEmitter inside declare module "grpc" 2019-08-22 11:35:22 -07:00
murgatroid99 f5294f7258 Upmerge 1.22 into 1.23 2019-08-20 10:11:49 -07:00
Erik Silkensen 81c579deae
Fix typo in makeServerStreamRequest return type (grpc-native-core) 2019-08-04 17:12:49 -06:00
murgatroid99 0dc0b68197 Fix typo in native types file 2019-07-16 14:21:42 -07:00
CyrusNajmabadi 26e30ab136
Fix 'noImplicitAny' issue with declaration file.
The latest release of grpc-node cannot be used in a typescript project that uses -noImplicitAny.  This is due to a signature being added without a specified return type.  This causes the return type to implicitly be 'any' which TS explicitly disallows.  For projects that use strict flags to catch lots of bugs, this prevents usage of this version of grpc entirely.
2019-07-09 12:39:06 -07:00
Michael Lumish 9c274034d0
Merge pull request #796 from murgatroid99/metadata_options
Add metadata options
2019-06-03 10:48:23 -07:00
Eva Ogbe a11bdbb0a2 Native: Remove unused ChannelCredential type definitions
Removes:
- getCallCredentials
- getSecureContext

These functions no longer exist, so their presence in the type 
definitions is invalid.
2019-05-03 15:03:02 -07:00
murgatroid99 fe090a089a Native: Add initial metadata options 2019-03-20 14:59:16 -07:00
Nicolas "Pixel" Noble 6bc7184542 Adding missing license on a bunch of source files. 2019-03-19 01:06:57 +01:00
murgatroid99 f9de2aff7e grpc native: Fix handling of non-service objects in package definitions 2019-01-14 17:47:47 -08:00
murgatroid99 579f57c68a Native: add details property to StatusError type 2019-01-08 11:02:56 -08:00
André Wachter 9f40dfafea Add missing Typescript definition for Server.bindAsync() 2018-12-05 17:46:32 +01:00
Kelvin Jin 7720d068ca Add return type definition to watchConnectivityState 2018-08-14 10:29:53 -07:00
murgatroid99 40e5bb4a73 Fix typo in typescript definitions file 2018-08-09 11:42:43 -07:00
Ian Haken 5f77bcda1f Add some missing descriptions to typescript. 2018-08-06 15:40:22 -07:00
Ian Haken 51c97b559d Update typescript to properly reflect the format of the certificate received by the checkServerIdentity callback. 2018-08-06 15:40:22 -07:00
Ian Haken 1fd96966d7 Correct checkServerIdentity behavior to return a verification failure if an error is returned. Clean up documentation and add a test assertion on returned Error. 2018-08-06 15:40:22 -07:00
Ian Haken a48629fa83 Update credentials.js documentation for verify options and add verify options to typescript definition. 2018-08-06 15:40:22 -07:00
Michael Lumish e66462933a
Merge pull request #446 from murgatroid99/native_channel_API
Add Channel class and Client channel override options to public API
2018-07-25 10:36:16 -07:00
murgatroid99 c4e3f1b7a0 Add Channel class and Client channel override options to public API 2018-07-19 15:57:33 -07:00
Thomas Ladd d7da553a03 grpc-native-core: Update CallOptions type to allow custom options (#433)
Allow custom options as a means of passing data per call to client interceptors
2018-07-13 10:14:17 -05:00
Kelvin Jin abb05f0c12 Make Protobuf.js Message type non-generic 2018-06-12 11:03:23 -07:00
Huan LI 6ef1e92874
optional value for covenience 2018-05-06 14:57:12 +08:00
Justin Beckwith 5233c2d8eb fix: use capital `F` for `Function` when used as a type 2018-05-02 15:24:34 -07:00
murgatroid99 85c154c507 Add loadPackageDefinition and interceptor APIs to .d.ts file 2018-05-02 11:55:41 -07:00
murgatroid99 2f649e5d05 Fix usage of Protobuf.js Message type in TS file 2018-02-09 11:12:27 -08:00
murgatroid99 e87552d918 Fix documentation of part of the type signature for server credentials 2018-02-05 14:35:20 -08:00
André Wachter 0d19268ef9 Tighten the definition of ServiceDefinition 2018-01-10 11:08:34 +01:00
André Wachter a0abff8b8e Rename generic parameter to 'RequestType' in ServerReadableStream for consistency 2018-01-10 10:30:51 +01:00
André Wachter 3692053a4e Add missing properties to ServerDuplexStream
- cancelled: boolean;
- metadata: Metadata;
2017-12-18 14:44:15 +01:00
André Wachter 6d21f12cfe Export UntypedServiceImplementation 2017-12-18 14:44:15 +01:00
André Wachter 4ab448e40f Fix typos and whitespace 2017-12-18 14:44:15 +01:00
André Wachter 9b6537545a Remove type parameter from ClientUnaryCall
The type parameter is currently not used and also matches the pure Js implementation this way.
2017-12-18 14:44:15 +01:00
André Wachter bf330585d0 Make values in callbacks nullable
Values are null in case of errors.
2017-12-18 14:44:15 +01:00
André Wachter 680d60584a Rename all type parameters related to requests/responses 'RequestType' and 'ResponseType'
This improves clarity and consistency with the pure Js implementation.
2017-12-18 14:44:15 +01:00
André Wachter d20bf6f49e Make type 'handleCall' and related types take a RequestType and ResponseType parameter 2017-12-18 14:44:15 +01:00
André Wachter 0cdc2855c2 Make types 'serialize' and 'deserialize' parametric with their serialization types 2017-12-18 14:44:15 +01:00
André Wachter 55eec06946 Make MethodDefinition parametric with request and response types 2017-12-18 14:44:15 +01:00
André Wachter 7d5547b2dd Drop Service<T> in favour of ServiceDefinition<ImplementationType> 2017-12-18 14:44:15 +01:00
André Wachter 71bee4ab41 Fix the definition of Service<T>
Type aliases will not give the correct inferred type in Server.addService() so use an interface here.
2017-12-18 14:44:15 +01:00
André Wachter b68e5dd73b Add generic parameters in index.d.ts to some functions and types 2017-12-18 14:44:15 +01:00
André Wachter 98864a343b Fix index.d.ts error: Type 'Message' is not generic. 2017-12-18 14:44:15 +01:00
James Sherwood-Jones d6711c4d24 Fixed name of ServerCredentials.createSsl in native docs & types. 2017-11-08 09:41:55 +00:00
Bjørn 00b4bc6e59 Added missing streaming implementations 2017-10-06 21:48:16 +02:00
Bjørn a026502019 Order imports correctly 2017-10-06 20:25:43 +02:00