0.1.3 • Published 2 years ago

@types/globalyzer v0.1.3

Weekly downloads
1,665
License
MIT
Repository
github
Last release
2 years ago

Installation

npm install --save @types/globalyzer

Summary

This package contains type definitions for globalyzer (https://github.com/terkelg/globalyzer#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/globalyzer.

index.d.ts

// Type definitions for globalyzer 0.1
// Project: https://github.com/terkelg/globalyzer#readme
// Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/**
 * Detect and extract the static part of a glob string.
 * Utility to detect if a string contains a glob and then split it in a glob and none-glob part.
 * @param pattern - Glob string to analyze
 */
declare function globalyzer(
    glob: string,
    options?: {
        /**
         * Use strict parsing (be strict about what's a glob and what's not)
         * @default false
         */
        strict?: boolean | undefined;
    },
): {
    base: string;
    glob: string;
    isGlob: boolean;
};

export = globalyzer;

Additional Details

  • Last updated: Thu, 08 Jul 2021 12:02:15 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Piotr Błażejewicz.