@selfage/web_service_client
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

@selfage/web_service_client

Install

npm install @selfage/web_service_client

Overview

Written in TypeScript and compiled to ES6 with inline source map & source. See @selfage/tsconfig for full compiler options. Provides a type-safe client to call services from web browsers, with service descriptors are generated by @selfage/generator_cli.

Example usages

In this repo, test_data/get_comments.ts, test_data/get_history.ts, and test_data/upload_file.ts are code presumably generated by @selfage/generator_cli.

Then test_data/get_comments_test.ts contains the most basic usage. test_data/get_history_test.ts handles authentication. And test_data/upload_file_test.ts handles streaming bytes data.

The other test files also include error handling.

Dependencies (3)

Dev Dependencies (10)

Package Sidebar

Install

npm i @selfage/web_service_client

Weekly Downloads

65

Version

1.4.0

License

GPL-3.0-or-later

Unpacked Size

64.6 kB

Total Files

13

Last publish

Collaborators

  • teststaybaka