From 3bd00a64a97e603e4966a625ad2c1ef7178158c8 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Thu, 9 Nov 2023 23:56:17 +0700 Subject: [PATCH] Add `convertPathToPattern()` method --- index.d.ts | 3 +++ index.js | 2 ++ readme.md | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/index.d.ts b/index.d.ts index e88d6d4..0e2abb0 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,3 +1,4 @@ +import type FastGlob from 'fast-glob'; import {type Options as FastGlobOptions, type Entry} from 'fast-glob'; export type GlobEntry = Entry; @@ -203,3 +204,5 @@ export function isGitIgnored(options?: GitignoreOptions): Promise` in the format `{patterns: string[], options: Object}`, which can be passed as arguments to [`fast-glob`](https://github.com/mrmlnc/fast-glob). This is useful for other globbing-related packages.