UNPKG

@pagopa/danger-plugin

Version:

Shared rules for DangerJS, used in the PagoPA projects

8 lines (7 loc) 441 B
import * as E from "fp-ts/Either"; import * as O from "fp-ts/Option"; import { Scope } from "../types"; export declare const checkMinLength: (s: string, n: number) => E.Either<Error, string>; export declare const matchRegex: (s: string) => (regex: RegExp) => O.Option<string>; export declare const popFromRegex: (s: string) => (regex: RegExp) => O.Option<string>; export declare const isSameScope: (scopes: ReadonlyArray<Scope>) => boolean;