filter-scan-dir 1.5.2 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +11 -2
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
export * from "../dist/index.d";
|
|
2
|
-
import { filterScanDir } from "../dist/index.d";
|
|
3
2
|
|
|
3
|
+
import { filterScanDir as FSD, filterScanDirSync as FSDS } from "../dist/index.d";
|
|
4
|
+
|
|
5
|
+
// backward type compatible for legacy require("filter-scan-dir") usage
|
|
6
|
+
// new TS code should do `import {filterScanDir} from "filter-scan-dir"`
|
|
7
|
+
declare function asyncApi(options?: any): Promise<any>;
|
|
8
|
+
declare namespace asyncApi {
|
|
9
|
+
const sync: (options?: any) => any;
|
|
10
|
+
const filterScanDir: typeof FSD;
|
|
11
|
+
const filterScanDirSync: typeof FSDS;
|
|
12
|
+
}
|
|
4
13
|
// @ts-ignore
|
|
5
|
-
export =
|
|
14
|
+
export = asyncApi;
|