Commit Graph

44 Commits

Author SHA1 Message Date
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
Bjørn 11307ac0a6 Missed a return type on the OAuth2 client interface 2017-10-06 20:25:33 +02:00
Bjørn 836f9bdb36 Make streams extend Readable, Writeable and Duplex types from Node.js stream pkg 2017-10-06 20:20:16 +02:00
Bjørn 4647cc125b Use the correct Google credentials interface 2017-10-06 20:00:08 +02:00
Bjørn ae5219310e Align with js-core package 2017-10-06 19:50:50 +02:00
Bjørn cd265999f3 Missed a status code enum 2017-10-01 10:35:22 +02:00
Bjørn 4cbf7572b5 Changes based on review. 2017-10-01 10:33:48 +02:00
Bjørn bdbbd53249 Remove wrongly encoded spaces 2017-09-29 20:39:56 +02:00
Bjørn 1428315e3b Add TypeScript typings to gRPC native core package 2017-09-29 11:31:32 +02:00