UNPKG

@spotinst/spinnaker-deck

Version:

Spinnaker-Deck service, forked with support to Spotinst

20 lines (17 loc) 398 B
import { REST } from 'core'; export interface ISlackChannel { id: string; name: string; is_channel: boolean; creator: string; is_archived: boolean; name_normalized: string; num_members: number; } export class SlackReader { public static getChannels(): PromiseLike<ISlackChannel[]> { return REST('/slack/channels') .get() .catch(() => [] as ISlackChannel[]); } }