import { APIClient } from '../api_client' ; import { apiMethod } from '../api_method' ; import { APIResource } from '../api_resource' ; import { APIHandler } from '../api_types' ; import { GET } from '../constants' ; export class PeersResource extends APIResource { public get : APIHandler ; public path : string ; public constructor ( apiClient ) { super ( apiClient ) ; this . path = '/peers' ; this . get = apiMethod ( { method : GET , } ) . bind ( this ) ; } }