1.0.0 • Published 5 years ago

revival-adapter-promise v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Promise Adapter

An adapter for adapting promise types.

Installation and Usage

npm install revival-adapter-promise

or

yarn add revival-adapter-promise
  • And use them as below:
let revival: Revival = new RevivalBuilder()
  .baseUrl("http://test.com/")
  .addCallAdapter(PromiseCallAdapter.create())
  .build();
  • Now your api can use as Promise:
class MyApi {
  @GET("user/{id}") loadAccount(@Path id: string) : Promise<Account> {
    return DUMMY;
  }
}

Credits

  • Retrofit - Type-safe HTTP client for Android and Java by Square, Inc.

License

	MIT License

	Copyright (C) 2017-present Vincent Cheung

	This source code is licensed under the MIT license found in the
	LICENSE file in the root directory of this source tree.
1.0.0

5 years ago

0.5.4

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.9

6 years ago

0.4.8

6 years ago

0.4.7

6 years ago

0.4.6

6 years ago

0.4.5

6 years ago

0.4.4

6 years ago

0.4.3

6 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.2

7 years ago