@zman2013/ts-apollo-client
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

@zman2013/ts-apollo-client

Build Status Coverage Status npm

A TypeScript implementation of a client for Apollo(https://github.com/ctripcorp/apollo), the reliable configuration management system.

Usage

npm install @zman2013/ts-apollo-client

example1

import * as client from '@zman2013/ts-apollo-client'

const meta = new client.Meta('http://xxx', 'appId')
client.getConfig(meta).then(json => console.log(json))

example2 - multiple namespaces

import * as client from '@zman2013/ts-apollo-client'

const meta = new client.Meta('http://xxx', 'appId', ['application', 'common'])
client.getConfig(meta).then(json => console.log(json))

Github

https://github.com/zman2013/ts-apollo-client

Readme

Keywords

none

Package Sidebar

Install

npm i @zman2013/ts-apollo-client

Weekly Downloads

8

Version

1.1.2

License

MIT

Unpacked Size

13.7 kB

Total Files

6

Last publish

Collaborators

  • bibber