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

2.4.2 • 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.

Package Sidebar

Install

npm i @selfage/web_service_client

Weekly Downloads

2

Version

2.4.2

License

MIT

Unpacked Size

33.6 kB

Total Files

15

Last publish

Collaborators

  • teststaybaka
  • ykuyo.dev