@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.
Files changed (2) hide show
  1. package/dist/paths.d.ts +19 -18
  2. 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): any;
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): any;
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
- }): any;
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
- }): any;
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
- }): any;
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): any;
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: any;
967
- delimiter: any;
968
- dirname: any;
969
- extname: any;
970
- isAbsolute: any;
971
- join: any;
972
- normalize: any;
973
- relative: any;
974
- resolve: any;
975
- parse: any;
976
- sep: any;
977
- toNamespacedPath: any;
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, };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/path",
3
3
  "type": "module",
4
- "version": "0.59.6",
4
+ "version": "0.59.8",
5
5
  "description": "The Stacks path.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",