UNPKG

958 BTypeScriptView Raw
1import { CriticalityLevel, Change } from '@graphql-inspector/core';
2import { Endpoint } from './config';
3export declare function bolderize(msg: string): string;
4export declare function quotesTransformer(msg: string, symbols?: string): string;
5export declare function slackCoderize(msg: string): string;
6export declare function discordCoderize(msg: string): string;
7export declare function filterChangesByLevel(level: CriticalityLevel): (change: Change) => boolean;
8export declare function createSummary(changes: Change[], summaryLimit: number, isLegacyConfig: boolean): string;
9export declare function isNil(val: any): val is undefined | null;
10export declare function parseEndpoint(endpoint: Endpoint): {
11 url: string;
12 method: 'GET' | 'get' | 'post' | 'POST';
13 headers?: {
14 [name: string]: string;
15 };
16};
17export declare function batch<T>(items: T[], limit: number): T[][];
18export declare function objectFromEntries(iterable: any[]): any;