Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

315 B
Raw Blame
declare module "slugg" {
  type Separator = string;
  type ToStrip = string | RegExp;

  type Options = {
    separator?: Separator;
    toStrip?: ToStrip;
    toLowerCase?: boolean;
  };

  export default function slugg(
    str: string,
    separatorOrOptions?: Separator | Options,
    toStrip?: ToStrip,
  );
}