@stacksjs/path 0.59.6 → 0.59.8
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/dist/paths.d.ts +19 -18
- package/package.json +1 -1
package/dist/paths.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import { basename, delimiter, dirname, extname, isAbsolute, join, normalize, relative, resolve, sep, toNamespacedPath } from 'node:path';
|
|
2
3
|
/**
|
|
3
4
|
* Returns the path to the `actions` directory. The `actions` directory
|
|
@@ -13,7 +14,7 @@ import { basename, delimiter, dirname, extname, isAbsolute, join, normalize, rel
|
|
|
13
14
|
* ```
|
|
14
15
|
*/
|
|
15
16
|
export declare function actionsPath(path?: string): string;
|
|
16
|
-
export declare function relativeActionsPath(path?: string):
|
|
17
|
+
export declare function relativeActionsPath(path?: string): string;
|
|
17
18
|
export declare function userActionsPath(path?: string): string;
|
|
18
19
|
/**
|
|
19
20
|
* Returns the path to the user-defined `Jobs` directory.
|
|
@@ -120,7 +121,7 @@ export declare function aiPath(path?: string): string;
|
|
|
120
121
|
* console.log(assetsPath('images/logo.png')) // Outputs the absolute path to 'images/logo.png' within the `assets` directory.
|
|
121
122
|
* ```
|
|
122
123
|
*/
|
|
123
|
-
export declare function assetsPath(path?: string):
|
|
124
|
+
export declare function assetsPath(path?: string): string;
|
|
124
125
|
/**
|
|
125
126
|
* Returns the path to the `alias` directory within the core directory.
|
|
126
127
|
*
|
|
@@ -150,7 +151,7 @@ export declare function aliasPath(): string;
|
|
|
150
151
|
*/
|
|
151
152
|
export declare function buddyPath(path?: string, options?: {
|
|
152
153
|
relative?: boolean;
|
|
153
|
-
}):
|
|
154
|
+
}): string;
|
|
154
155
|
/**
|
|
155
156
|
* Returns the path to the `runtime` directory within the framework directory.
|
|
156
157
|
*
|
|
@@ -665,7 +666,7 @@ export declare function realtimePath(path?: string): string;
|
|
|
665
666
|
*/
|
|
666
667
|
export declare function resourcesPath(path?: string, options?: {
|
|
667
668
|
relative?: boolean;
|
|
668
|
-
}):
|
|
669
|
+
}): string;
|
|
669
670
|
/**
|
|
670
671
|
* Returns the path to the `repl` directory within the core directory.
|
|
671
672
|
*
|
|
@@ -690,7 +691,7 @@ export declare function routerPath(path?: string): string;
|
|
|
690
691
|
*/
|
|
691
692
|
export declare function routesPath(path?: string, options?: {
|
|
692
693
|
relative?: boolean;
|
|
693
|
-
}):
|
|
694
|
+
}): string;
|
|
694
695
|
/**
|
|
695
696
|
* Returns the path to the `search-engine` directory within the core directory.
|
|
696
697
|
*
|
|
@@ -746,7 +747,7 @@ export declare function storagePath(path?: string): string;
|
|
|
746
747
|
* @param path - The relative path to the file or directory within the `stores` directory.
|
|
747
748
|
* @returns The absolute path to the specified file or directory within the `stores` directory.
|
|
748
749
|
*/
|
|
749
|
-
export declare function storesPath(path?: string):
|
|
750
|
+
export declare function storesPath(path?: string): string;
|
|
750
751
|
/**
|
|
751
752
|
* Returns the path to the `security` directory within the core directory.
|
|
752
753
|
*
|
|
@@ -963,17 +964,17 @@ export declare const path: {
|
|
|
963
964
|
vitePath: typeof vitePath;
|
|
964
965
|
xRayPath: typeof xRayPath;
|
|
965
966
|
homeDir: typeof homeDir;
|
|
966
|
-
basename:
|
|
967
|
-
delimiter:
|
|
968
|
-
dirname:
|
|
969
|
-
extname:
|
|
970
|
-
isAbsolute:
|
|
971
|
-
join:
|
|
972
|
-
normalize:
|
|
973
|
-
relative:
|
|
974
|
-
resolve:
|
|
975
|
-
parse:
|
|
976
|
-
sep:
|
|
977
|
-
toNamespacedPath:
|
|
967
|
+
basename: (path: string, suffix?: string | undefined) => string;
|
|
968
|
+
delimiter: ";" | ":";
|
|
969
|
+
dirname: (path: string) => string;
|
|
970
|
+
extname: (path: string) => string;
|
|
971
|
+
isAbsolute: (path: string) => boolean;
|
|
972
|
+
join: (...paths: string[]) => string;
|
|
973
|
+
normalize: (path: string) => string;
|
|
974
|
+
relative: (from: string, to: string) => string;
|
|
975
|
+
resolve: (...paths: string[]) => string;
|
|
976
|
+
parse: (path: string) => import("path").ParsedPath;
|
|
977
|
+
sep: "/" | "\\";
|
|
978
|
+
toNamespacedPath: (path: string) => string;
|
|
978
979
|
};
|
|
979
980
|
export { basename, delimiter, dirname, extname, isAbsolute, join, normalize, relative, resolve, sep, toNamespacedPath, };
|