@duplojs/server 0.1.0-beta.3 → 0.1.0-beta.4

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 (135) hide show
  1. package/dist/command/argument.d.ts +2 -2
  2. package/dist/command/create.cjs +7 -1
  3. package/dist/command/create.d.ts +3 -3
  4. package/dist/command/create.mjs +7 -1
  5. package/dist/command/error.cjs +24 -0
  6. package/dist/command/error.d.ts +9 -1
  7. package/dist/command/error.mjs +24 -0
  8. package/dist/command/exec.d.ts +4 -3
  9. package/dist/command/help.d.ts +1 -1
  10. package/dist/command/index.cjs +4 -0
  11. package/dist/command/index.mjs +4 -2
  12. package/dist/command/options/base.cjs +21 -13
  13. package/dist/command/options/base.d.ts +6 -0
  14. package/dist/command/options/base.mjs +20 -14
  15. package/dist/command/options/defaults/array.d.ts +6 -4
  16. package/dist/command/options/defaults/boolean.cjs +21 -7
  17. package/dist/command/options/defaults/boolean.d.ts +6 -3
  18. package/dist/command/options/defaults/boolean.mjs +20 -8
  19. package/dist/command/options/defaults/simple.d.ts +6 -4
  20. package/dist/command/types/forbiddenInvalidIdentifier.d.ts +6 -0
  21. package/dist/command/types/index.d.ts +1 -0
  22. package/dist/common/environmentVariable/index.d.ts +1 -1
  23. package/dist/common/environmentVariable/overrideEnvironmentVariables.d.ts +1 -1
  24. package/dist/common/environmentVariable/parseEnvironmentFiles.d.ts +1 -1
  25. package/dist/dataStructure/helper/file.d.ts +1 -1
  26. package/dist/dataStructure/helper/folder.d.ts +1 -1
  27. package/dist/file/appendFile.cjs +10 -0
  28. package/dist/file/appendFile.d.ts +13 -13
  29. package/dist/file/appendFile.mjs +1 -1
  30. package/dist/file/appendTextFile.cjs +10 -0
  31. package/dist/file/appendTextFile.d.ts +13 -13
  32. package/dist/file/appendTextFile.mjs +1 -1
  33. package/dist/file/copy.cjs +10 -0
  34. package/dist/file/copy.d.ts +13 -13
  35. package/dist/file/copy.mjs +1 -1
  36. package/dist/file/createEntryInterface.cjs +4 -1
  37. package/dist/file/createEntryInterface.d.ts +1 -1
  38. package/dist/file/createEntryInterface.mjs +3 -1
  39. package/dist/file/ensureDirectory.cjs +8 -0
  40. package/dist/file/ensureDirectory.d.ts +10 -10
  41. package/dist/file/ensureDirectory.mjs +1 -1
  42. package/dist/file/ensureFile.cjs +9 -0
  43. package/dist/file/ensureFile.d.ts +11 -11
  44. package/dist/file/ensureFile.mjs +1 -1
  45. package/dist/file/exists.cjs +5 -0
  46. package/dist/file/exists.d.ts +7 -7
  47. package/dist/file/exists.mjs +1 -1
  48. package/dist/file/fileInterface.cjs +1 -1
  49. package/dist/file/fileInterface.d.ts +5 -6
  50. package/dist/file/fileInterface.mjs +1 -1
  51. package/dist/file/folderInterface.cjs +1 -1
  52. package/dist/file/folderInterface.d.ts +5 -6
  53. package/dist/file/folderInterface.mjs +1 -1
  54. package/dist/file/index.cjs +506 -0
  55. package/dist/file/index.mjs +285 -32
  56. package/dist/file/link.cjs +11 -0
  57. package/dist/file/link.d.ts +14 -14
  58. package/dist/file/link.mjs +1 -1
  59. package/dist/file/linkStat.cjs +6 -0
  60. package/dist/file/linkStat.d.ts +8 -8
  61. package/dist/file/linkStat.mjs +1 -1
  62. package/dist/file/makeDirectory.cjs +10 -0
  63. package/dist/file/makeDirectory.d.ts +12 -12
  64. package/dist/file/makeDirectory.mjs +1 -1
  65. package/dist/file/makeTemporaryDirectory.cjs +7 -0
  66. package/dist/file/makeTemporaryDirectory.d.ts +7 -7
  67. package/dist/file/makeTemporaryDirectory.mjs +1 -1
  68. package/dist/file/makeTemporaryFile.cjs +8 -0
  69. package/dist/file/makeTemporaryFile.d.ts +8 -8
  70. package/dist/file/makeTemporaryFile.mjs +1 -1
  71. package/dist/file/move.cjs +11 -0
  72. package/dist/file/move.d.ts +14 -14
  73. package/dist/file/move.mjs +1 -1
  74. package/dist/file/readDirectory.cjs +6 -0
  75. package/dist/file/readDirectory.d.ts +8 -8
  76. package/dist/file/readDirectory.mjs +1 -1
  77. package/dist/file/readFile.cjs +7 -0
  78. package/dist/file/readFile.d.ts +9 -9
  79. package/dist/file/readFile.mjs +1 -1
  80. package/dist/file/readJsonFile.cjs +7 -0
  81. package/dist/file/readJsonFile.d.ts +9 -9
  82. package/dist/file/readJsonFile.mjs +1 -1
  83. package/dist/file/readLink.cjs +6 -0
  84. package/dist/file/readLink.d.ts +8 -8
  85. package/dist/file/readLink.mjs +1 -1
  86. package/dist/file/readTextFile.cjs +7 -0
  87. package/dist/file/readTextFile.d.ts +9 -9
  88. package/dist/file/readTextFile.mjs +1 -1
  89. package/dist/file/realPath.cjs +5 -0
  90. package/dist/file/realPath.d.ts +7 -7
  91. package/dist/file/realPath.mjs +1 -1
  92. package/dist/file/relocate.cjs +11 -0
  93. package/dist/file/relocate.d.ts +14 -14
  94. package/dist/file/relocate.mjs +1 -1
  95. package/dist/file/remove.cjs +9 -0
  96. package/dist/file/remove.d.ts +11 -11
  97. package/dist/file/remove.mjs +1 -1
  98. package/dist/file/rename.cjs +11 -0
  99. package/dist/file/rename.d.ts +14 -14
  100. package/dist/file/rename.mjs +1 -1
  101. package/dist/file/setMode.cjs +6 -0
  102. package/dist/file/setMode.d.ts +9 -9
  103. package/dist/file/setMode.mjs +1 -1
  104. package/dist/file/setOwner.cjs +6 -0
  105. package/dist/file/setOwner.d.ts +9 -9
  106. package/dist/file/setOwner.mjs +1 -1
  107. package/dist/file/setTime.cjs +6 -0
  108. package/dist/file/setTime.d.ts +9 -9
  109. package/dist/file/setTime.mjs +1 -1
  110. package/dist/file/stat.cjs +6 -0
  111. package/dist/file/stat.d.ts +8 -8
  112. package/dist/file/stat.mjs +1 -1
  113. package/dist/file/symlink.cjs +9 -0
  114. package/dist/file/symlink.d.ts +12 -12
  115. package/dist/file/symlink.mjs +1 -1
  116. package/dist/file/truncate.cjs +10 -0
  117. package/dist/file/truncate.d.ts +12 -12
  118. package/dist/file/truncate.mjs +1 -1
  119. package/dist/file/unknownEntryInterface.cjs +3 -1
  120. package/dist/file/unknownEntryInterface.d.ts +4 -4
  121. package/dist/file/unknownEntryInterface.mjs +2 -1
  122. package/dist/file/walkDirectory.cjs +11 -1
  123. package/dist/file/walkDirectory.d.ts +9 -9
  124. package/dist/file/walkDirectory.mjs +6 -2
  125. package/dist/file/writeFile.cjs +10 -0
  126. package/dist/file/writeFile.d.ts +13 -13
  127. package/dist/file/writeFile.mjs +1 -1
  128. package/dist/file/writeJsonFile.cjs +10 -0
  129. package/dist/file/writeJsonFile.d.ts +13 -13
  130. package/dist/file/writeJsonFile.mjs +1 -1
  131. package/dist/file/writeTextFile.cjs +10 -0
  132. package/dist/file/writeTextFile.d.ts +13 -13
  133. package/dist/file/writeTextFile.mjs +1 -1
  134. package/dist/override.d.ts +8 -0
  135. package/package.json +3 -3
@@ -1,25 +1,25 @@
1
1
  import * as DEither from "@duplojs/lang/either";
2
2
  import * as DCommon from "@duplojs/lang/common";
3
3
  declare const MakeTemporaryDirectoryErrorPermissionDenied_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-make-temporary-directory-permission-denied", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-make-temporary-directory-permission-denied", unknown>>, unknown>;
4
- declare class MakeTemporaryDirectoryErrorPermissionDenied extends MakeTemporaryDirectoryErrorPermissionDenied_base {
4
+ export declare class MakeTemporaryDirectoryErrorPermissionDenied extends MakeTemporaryDirectoryErrorPermissionDenied_base {
5
5
  }
6
6
  declare const MakeTemporaryDirectoryErrorNotDirectory_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-make-temporary-directory-not-directory", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-make-temporary-directory-not-directory", unknown>>, unknown>;
7
- declare class MakeTemporaryDirectoryErrorNotDirectory extends MakeTemporaryDirectoryErrorNotDirectory_base {
7
+ export declare class MakeTemporaryDirectoryErrorNotDirectory extends MakeTemporaryDirectoryErrorNotDirectory_base {
8
8
  }
9
9
  declare const MakeTemporaryDirectoryErrorNoSpace_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-make-temporary-directory-no-space", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-make-temporary-directory-no-space", unknown>>, unknown>;
10
- declare class MakeTemporaryDirectoryErrorNoSpace extends MakeTemporaryDirectoryErrorNoSpace_base {
10
+ export declare class MakeTemporaryDirectoryErrorNoSpace extends MakeTemporaryDirectoryErrorNoSpace_base {
11
11
  }
12
12
  declare const MakeTemporaryDirectoryErrorReadOnly_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-make-temporary-directory-read-only", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-make-temporary-directory-read-only", unknown>>, unknown>;
13
- declare class MakeTemporaryDirectoryErrorReadOnly extends MakeTemporaryDirectoryErrorReadOnly_base {
13
+ export declare class MakeTemporaryDirectoryErrorReadOnly extends MakeTemporaryDirectoryErrorReadOnly_base {
14
14
  }
15
15
  declare const MakeTemporaryDirectoryErrorInvalidArgument_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-make-temporary-directory-invalid-argument", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-make-temporary-directory-invalid-argument", unknown>>, unknown>;
16
- declare class MakeTemporaryDirectoryErrorInvalidArgument extends MakeTemporaryDirectoryErrorInvalidArgument_base {
16
+ export declare class MakeTemporaryDirectoryErrorInvalidArgument extends MakeTemporaryDirectoryErrorInvalidArgument_base {
17
17
  }
18
18
  declare const MakeTemporaryDirectoryErrorTooManyOpenFiles_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-make-temporary-directory-too-many-open-files", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-make-temporary-directory-too-many-open-files", unknown>>, unknown>;
19
- declare class MakeTemporaryDirectoryErrorTooManyOpenFiles extends MakeTemporaryDirectoryErrorTooManyOpenFiles_base {
19
+ export declare class MakeTemporaryDirectoryErrorTooManyOpenFiles extends MakeTemporaryDirectoryErrorTooManyOpenFiles_base {
20
20
  }
21
21
  declare const MakeTemporaryDirectoryError_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-make-temporary-directory-error", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-make-temporary-directory-error", unknown>>, unknown>;
22
- declare class MakeTemporaryDirectoryError extends MakeTemporaryDirectoryError_base {
22
+ export declare class MakeTemporaryDirectoryError extends MakeTemporaryDirectoryError_base {
23
23
  }
24
24
  export type MakeTemporaryDirectoryErrors = (MakeTemporaryDirectoryErrorPermissionDenied | MakeTemporaryDirectoryErrorNotDirectory | MakeTemporaryDirectoryErrorNoSpace | MakeTemporaryDirectoryErrorReadOnly | MakeTemporaryDirectoryErrorInvalidArgument | MakeTemporaryDirectoryErrorTooManyOpenFiles | MakeTemporaryDirectoryError);
25
25
  export type MakeTemporaryDirectoryResult = (DEither.Right<"file-system-make-temporary-directory", string> | DEither.Left<"file-system-make-temporary-directory-error", MakeTemporaryDirectoryErrors>);
@@ -35,4 +35,4 @@ const makeTemporaryDirectory = implementFunction("makeTemporaryDirectory", {
35
35
  DENO: (prefix) => Deno.makeTempDir({ prefix }).then((value) => DEither.right("file-system-make-temporary-directory", value)).catch(handleDenoMakeTemporaryDirectoryError)
36
36
  });
37
37
  //#endregion
38
- export { makeTemporaryDirectory };
38
+ export { MakeTemporaryDirectoryError, MakeTemporaryDirectoryErrorInvalidArgument, MakeTemporaryDirectoryErrorNoSpace, MakeTemporaryDirectoryErrorNotDirectory, MakeTemporaryDirectoryErrorPermissionDenied, MakeTemporaryDirectoryErrorReadOnly, MakeTemporaryDirectoryErrorTooManyOpenFiles, makeTemporaryDirectory };
@@ -51,4 +51,12 @@ const makeTemporaryFile = require_implementor.implementFunction("makeTemporaryFi
51
51
  }).then((value) => _duplojs_lang_either.right("file-system-make-temporary-file", value)).catch(handleDenoMakeTemporaryFileError)
52
52
  });
53
53
  //#endregion
54
+ exports.MakeTemporaryFileError = MakeTemporaryFileError;
55
+ exports.MakeTemporaryFileErrorAlreadyExists = MakeTemporaryFileErrorAlreadyExists;
56
+ exports.MakeTemporaryFileErrorInvalidArgument = MakeTemporaryFileErrorInvalidArgument;
57
+ exports.MakeTemporaryFileErrorNoSpace = MakeTemporaryFileErrorNoSpace;
58
+ exports.MakeTemporaryFileErrorNotDirectory = MakeTemporaryFileErrorNotDirectory;
59
+ exports.MakeTemporaryFileErrorPermissionDenied = MakeTemporaryFileErrorPermissionDenied;
60
+ exports.MakeTemporaryFileErrorReadOnly = MakeTemporaryFileErrorReadOnly;
61
+ exports.MakeTemporaryFileErrorTooManyOpenFiles = MakeTemporaryFileErrorTooManyOpenFiles;
54
62
  exports.makeTemporaryFile = makeTemporaryFile;
@@ -2,28 +2,28 @@ import * as DCommon from "@duplojs/lang/common";
2
2
  import * as DPath from "@duplojs/lang/path";
3
3
  import * as DEither from "@duplojs/lang/either";
4
4
  declare const MakeTemporaryFileErrorPermissionDenied_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-make-temporary-file-permission-denied", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-make-temporary-file-permission-denied", unknown>>, unknown>;
5
- declare class MakeTemporaryFileErrorPermissionDenied extends MakeTemporaryFileErrorPermissionDenied_base {
5
+ export declare class MakeTemporaryFileErrorPermissionDenied extends MakeTemporaryFileErrorPermissionDenied_base {
6
6
  }
7
7
  declare const MakeTemporaryFileErrorAlreadyExists_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-make-temporary-file-already-exists", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-make-temporary-file-already-exists", unknown>>, unknown>;
8
- declare class MakeTemporaryFileErrorAlreadyExists extends MakeTemporaryFileErrorAlreadyExists_base {
8
+ export declare class MakeTemporaryFileErrorAlreadyExists extends MakeTemporaryFileErrorAlreadyExists_base {
9
9
  }
10
10
  declare const MakeTemporaryFileErrorNotDirectory_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-make-temporary-file-not-directory", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-make-temporary-file-not-directory", unknown>>, unknown>;
11
- declare class MakeTemporaryFileErrorNotDirectory extends MakeTemporaryFileErrorNotDirectory_base {
11
+ export declare class MakeTemporaryFileErrorNotDirectory extends MakeTemporaryFileErrorNotDirectory_base {
12
12
  }
13
13
  declare const MakeTemporaryFileErrorNoSpace_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-make-temporary-file-no-space", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-make-temporary-file-no-space", unknown>>, unknown>;
14
- declare class MakeTemporaryFileErrorNoSpace extends MakeTemporaryFileErrorNoSpace_base {
14
+ export declare class MakeTemporaryFileErrorNoSpace extends MakeTemporaryFileErrorNoSpace_base {
15
15
  }
16
16
  declare const MakeTemporaryFileErrorReadOnly_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-make-temporary-file-read-only", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-make-temporary-file-read-only", unknown>>, unknown>;
17
- declare class MakeTemporaryFileErrorReadOnly extends MakeTemporaryFileErrorReadOnly_base {
17
+ export declare class MakeTemporaryFileErrorReadOnly extends MakeTemporaryFileErrorReadOnly_base {
18
18
  }
19
19
  declare const MakeTemporaryFileErrorInvalidArgument_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-make-temporary-file-invalid-argument", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-make-temporary-file-invalid-argument", unknown>>, unknown>;
20
- declare class MakeTemporaryFileErrorInvalidArgument extends MakeTemporaryFileErrorInvalidArgument_base {
20
+ export declare class MakeTemporaryFileErrorInvalidArgument extends MakeTemporaryFileErrorInvalidArgument_base {
21
21
  }
22
22
  declare const MakeTemporaryFileErrorTooManyOpenFiles_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-make-temporary-file-too-many-open-files", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-make-temporary-file-too-many-open-files", unknown>>, unknown>;
23
- declare class MakeTemporaryFileErrorTooManyOpenFiles extends MakeTemporaryFileErrorTooManyOpenFiles_base {
23
+ export declare class MakeTemporaryFileErrorTooManyOpenFiles extends MakeTemporaryFileErrorTooManyOpenFiles_base {
24
24
  }
25
25
  declare const MakeTemporaryFileError_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-make-temporary-file-error", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-make-temporary-file-error", unknown>>, unknown>;
26
- declare class MakeTemporaryFileError extends MakeTemporaryFileError_base {
26
+ export declare class MakeTemporaryFileError extends MakeTemporaryFileError_base {
27
27
  }
28
28
  export type MakeTemporaryFileErrors = (MakeTemporaryFileErrorPermissionDenied | MakeTemporaryFileErrorAlreadyExists | MakeTemporaryFileErrorNotDirectory | MakeTemporaryFileErrorNoSpace | MakeTemporaryFileErrorReadOnly | MakeTemporaryFileErrorInvalidArgument | MakeTemporaryFileErrorTooManyOpenFiles | MakeTemporaryFileError);
29
29
  export type MakeTemporaryFileResult = (DEither.Right<"file-system-make-temporary-file", string> | DEither.Left<"file-system-make-temporary-file-error", MakeTemporaryFileErrors>);
@@ -47,4 +47,4 @@ const makeTemporaryFile = implementFunction("makeTemporaryFile", {
47
47
  }).then((value) => DEither.right("file-system-make-temporary-file", value)).catch(handleDenoMakeTemporaryFileError)
48
48
  });
49
49
  //#endregion
50
- export { makeTemporaryFile };
50
+ export { MakeTemporaryFileError, MakeTemporaryFileErrorAlreadyExists, MakeTemporaryFileErrorInvalidArgument, MakeTemporaryFileErrorNoSpace, MakeTemporaryFileErrorNotDirectory, MakeTemporaryFileErrorPermissionDenied, MakeTemporaryFileErrorReadOnly, MakeTemporaryFileErrorTooManyOpenFiles, makeTemporaryFile };
@@ -57,4 +57,15 @@ function move(...args) {
57
57
  return moveImplementation(...args);
58
58
  }
59
59
  //#endregion
60
+ exports.MoveError = MoveError;
61
+ exports.MoveErrorAlreadyExists = MoveErrorAlreadyExists;
62
+ exports.MoveErrorBusy = MoveErrorBusy;
63
+ exports.MoveErrorCrossDevice = MoveErrorCrossDevice;
64
+ exports.MoveErrorDirectoryNotEmpty = MoveErrorDirectoryNotEmpty;
65
+ exports.MoveErrorInvalidArgument = MoveErrorInvalidArgument;
66
+ exports.MoveErrorIsDirectory = MoveErrorIsDirectory;
67
+ exports.MoveErrorNotDirectory = MoveErrorNotDirectory;
68
+ exports.MoveErrorNotFound = MoveErrorNotFound;
69
+ exports.MoveErrorPermissionDenied = MoveErrorPermissionDenied;
70
+ exports.MoveErrorReadOnly = MoveErrorReadOnly;
60
71
  exports.move = move;
@@ -2,45 +2,45 @@ import type * as DPath from "@duplojs/lang/path";
2
2
  import * as DEither from "@duplojs/lang/either";
3
3
  import * as DCommon from "@duplojs/lang/common";
4
4
  declare const MoveErrorNotFound_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-move-not-found", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-move-not-found", unknown>>, unknown>;
5
- declare class MoveErrorNotFound extends MoveErrorNotFound_base {
5
+ export declare class MoveErrorNotFound extends MoveErrorNotFound_base {
6
6
  }
7
7
  declare const MoveErrorPermissionDenied_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-move-permission-denied", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-move-permission-denied", unknown>>, unknown>;
8
- declare class MoveErrorPermissionDenied extends MoveErrorPermissionDenied_base {
8
+ export declare class MoveErrorPermissionDenied extends MoveErrorPermissionDenied_base {
9
9
  }
10
10
  declare const MoveErrorAlreadyExists_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-move-already-exists", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-move-already-exists", unknown>>, unknown>;
11
- declare class MoveErrorAlreadyExists extends MoveErrorAlreadyExists_base {
11
+ export declare class MoveErrorAlreadyExists extends MoveErrorAlreadyExists_base {
12
12
  }
13
13
  declare const MoveErrorIsDirectory_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-move-is-directory", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-move-is-directory", unknown>>, unknown>;
14
- declare class MoveErrorIsDirectory extends MoveErrorIsDirectory_base {
14
+ export declare class MoveErrorIsDirectory extends MoveErrorIsDirectory_base {
15
15
  }
16
16
  declare const MoveErrorNotDirectory_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-move-not-directory", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-move-not-directory", unknown>>, unknown>;
17
- declare class MoveErrorNotDirectory extends MoveErrorNotDirectory_base {
17
+ export declare class MoveErrorNotDirectory extends MoveErrorNotDirectory_base {
18
18
  }
19
19
  declare const MoveErrorDirectoryNotEmpty_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-move-directory-not-empty", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-move-directory-not-empty", unknown>>, unknown>;
20
- declare class MoveErrorDirectoryNotEmpty extends MoveErrorDirectoryNotEmpty_base {
20
+ export declare class MoveErrorDirectoryNotEmpty extends MoveErrorDirectoryNotEmpty_base {
21
21
  }
22
22
  declare const MoveErrorReadOnly_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-move-read-only", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-move-read-only", unknown>>, unknown>;
23
- declare class MoveErrorReadOnly extends MoveErrorReadOnly_base {
23
+ export declare class MoveErrorReadOnly extends MoveErrorReadOnly_base {
24
24
  }
25
25
  declare const MoveErrorInvalidArgument_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-move-invalid-argument", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-move-invalid-argument", unknown>>, unknown>;
26
- declare class MoveErrorInvalidArgument extends MoveErrorInvalidArgument_base {
26
+ export declare class MoveErrorInvalidArgument extends MoveErrorInvalidArgument_base {
27
27
  }
28
28
  declare const MoveErrorBusy_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-move-busy", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-move-busy", unknown>>, unknown>;
29
- declare class MoveErrorBusy extends MoveErrorBusy_base {
29
+ export declare class MoveErrorBusy extends MoveErrorBusy_base {
30
30
  }
31
31
  declare const MoveErrorCrossDevice_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-move-cross-device", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-move-cross-device", unknown>>, unknown>;
32
- declare class MoveErrorCrossDevice extends MoveErrorCrossDevice_base {
32
+ export declare class MoveErrorCrossDevice extends MoveErrorCrossDevice_base {
33
33
  }
34
34
  declare const MoveError_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-move-error", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-move-error", unknown>>, unknown>;
35
- declare class MoveError extends MoveError_base {
35
+ export declare class MoveError extends MoveError_base {
36
36
  }
37
37
  export type MoveErrors = (MoveErrorNotFound | MoveErrorPermissionDenied | MoveErrorAlreadyExists | MoveErrorIsDirectory | MoveErrorNotDirectory | MoveErrorDirectoryNotEmpty | MoveErrorReadOnly | MoveErrorInvalidArgument | MoveErrorBusy | MoveErrorCrossDevice | MoveError);
38
38
  export type MoveResult = (DEither.Right<"file-system-move", void> | DEither.Left<"file-system-move-error", MoveErrors>);
39
39
  declare module '../implementor' {
40
40
  interface ServerFunction {
41
- move(fromPath: string & DPath.Path, toPath: string & DPath.Path): Promise<MoveResult>;
41
+ move(fromPath: DPath.AnyPath, toPath: DPath.AnyPath): Promise<MoveResult>;
42
42
  }
43
43
  }
44
- export declare function move(toPath: string & DPath.Path): (fromPath: string & DPath.Path) => Promise<MoveResult>;
45
- export declare function move(fromPath: string & DPath.Path, toPath: string & DPath.Path): Promise<MoveResult>;
44
+ export declare function move(toPath: DPath.AnyPath): (fromPath: DPath.AnyPath) => Promise<MoveResult>;
45
+ export declare function move(fromPath: DPath.AnyPath, toPath: DPath.AnyPath): Promise<MoveResult>;
46
46
  export {};
@@ -54,4 +54,4 @@ function move(...args) {
54
54
  return moveImplementation(...args);
55
55
  }
56
56
  //#endregion
57
- export { move };
57
+ export { MoveError, MoveErrorAlreadyExists, MoveErrorBusy, MoveErrorCrossDevice, MoveErrorDirectoryNotEmpty, MoveErrorInvalidArgument, MoveErrorIsDirectory, MoveErrorNotDirectory, MoveErrorNotFound, MoveErrorPermissionDenied, MoveErrorReadOnly, move };
@@ -35,4 +35,10 @@ const readDirectory = require_implementor.implementFunction("readDirectory", { N
35
35
  }).then((value) => _duplojs_lang_array.map(value, ({ name, parentPath }) => _duplojs_lang_path.resolveFrom(require_getCurrentWorkDirectoryOrThrow.getCurrentWorkDirectoryOrThrow(), [_duplojs_lang_path.normalize(`${parentPath}/${name}`)]))) : require_implementor.nodeFileSystem.value.readdir(path, { recursive: params?.recursive }).then((value) => _duplojs_lang_array.map(value, (subPath) => _duplojs_lang_path.normalize(subPath)))).then(_duplojs_lang_common.innerPipe((paths) => params?.matcher ? _duplojs_lang_array.filter(paths, params.matcher) : paths, (value) => _duplojs_lang_either.right("file-system-read-directory", value))).catch(handleNodeReadDirectoryError);
36
36
  } });
37
37
  //#endregion
38
+ exports.ReadDirectoryError = ReadDirectoryError;
39
+ exports.ReadDirectoryErrorBusy = ReadDirectoryErrorBusy;
40
+ exports.ReadDirectoryErrorNotDirectory = ReadDirectoryErrorNotDirectory;
41
+ exports.ReadDirectoryErrorNotFound = ReadDirectoryErrorNotFound;
42
+ exports.ReadDirectoryErrorPermissionDenied = ReadDirectoryErrorPermissionDenied;
43
+ exports.ReadDirectoryErrorTooManyOpenFiles = ReadDirectoryErrorTooManyOpenFiles;
38
44
  exports.readDirectory = readDirectory;
@@ -2,22 +2,22 @@ import * as DPath from "@duplojs/lang/path";
2
2
  import * as DEither from "@duplojs/lang/either";
3
3
  import * as DCommon from "@duplojs/lang/common";
4
4
  declare const ReadDirectoryErrorNotFound_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-directory-not-found", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-directory-not-found", unknown>>, unknown>;
5
- declare class ReadDirectoryErrorNotFound extends ReadDirectoryErrorNotFound_base {
5
+ export declare class ReadDirectoryErrorNotFound extends ReadDirectoryErrorNotFound_base {
6
6
  }
7
7
  declare const ReadDirectoryErrorPermissionDenied_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-directory-permission-denied", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-directory-permission-denied", unknown>>, unknown>;
8
- declare class ReadDirectoryErrorPermissionDenied extends ReadDirectoryErrorPermissionDenied_base {
8
+ export declare class ReadDirectoryErrorPermissionDenied extends ReadDirectoryErrorPermissionDenied_base {
9
9
  }
10
10
  declare const ReadDirectoryErrorNotDirectory_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-directory-not-directory", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-directory-not-directory", unknown>>, unknown>;
11
- declare class ReadDirectoryErrorNotDirectory extends ReadDirectoryErrorNotDirectory_base {
11
+ export declare class ReadDirectoryErrorNotDirectory extends ReadDirectoryErrorNotDirectory_base {
12
12
  }
13
13
  declare const ReadDirectoryErrorTooManyOpenFiles_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-directory-too-many-open-files", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-directory-too-many-open-files", unknown>>, unknown>;
14
- declare class ReadDirectoryErrorTooManyOpenFiles extends ReadDirectoryErrorTooManyOpenFiles_base {
14
+ export declare class ReadDirectoryErrorTooManyOpenFiles extends ReadDirectoryErrorTooManyOpenFiles_base {
15
15
  }
16
16
  declare const ReadDirectoryErrorBusy_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-directory-busy", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-directory-busy", unknown>>, unknown>;
17
- declare class ReadDirectoryErrorBusy extends ReadDirectoryErrorBusy_base {
17
+ export declare class ReadDirectoryErrorBusy extends ReadDirectoryErrorBusy_base {
18
18
  }
19
19
  declare const ReadDirectoryError_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-directory-error", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-directory-error", unknown>>, unknown>;
20
- declare class ReadDirectoryError extends ReadDirectoryError_base {
20
+ export declare class ReadDirectoryError extends ReadDirectoryError_base {
21
21
  }
22
22
  export type ReadDirectoryErrors = (ReadDirectoryErrorNotFound | ReadDirectoryErrorPermissionDenied | ReadDirectoryErrorNotDirectory | ReadDirectoryErrorTooManyOpenFiles | ReadDirectoryErrorBusy | ReadDirectoryError);
23
23
  interface ReadDirectoryParams {
@@ -28,8 +28,8 @@ interface ReadDirectoryParams {
28
28
  export type ReadDirectoryResult<GenericParams extends ReadDirectoryParams = ReadDirectoryParams> = (DEither.Right<"file-system-read-directory", readonly (string & DPath.Path & (DCommon.IsEqual<GenericParams["absolute"], true> extends true ? DPath.Absolute : unknown))[]> | DEither.Left<"file-system-read-directory-error", ReadDirectoryErrors>);
29
29
  declare module '../implementor' {
30
30
  interface ServerFunction {
31
- readDirectory<const GenericParams extends ReadDirectoryParams = {}>(path: string & DPath.Path, params?: GenericParams): Promise<ReadDirectoryResult<GenericParams>>;
31
+ readDirectory<const GenericParams extends ReadDirectoryParams = {}>(path: DPath.AnyPath, params?: GenericParams): Promise<ReadDirectoryResult<GenericParams>>;
32
32
  }
33
33
  }
34
- export declare const readDirectory: <const GenericParams extends ReadDirectoryParams = {}>(path: string & DPath.Path, params?: GenericParams) => Promise<ReadDirectoryResult<GenericParams>>;
34
+ export declare const readDirectory: <const GenericParams extends ReadDirectoryParams = {}>(path: DPath.AnyPath, params?: GenericParams) => Promise<ReadDirectoryResult<GenericParams>>;
35
35
  export {};
@@ -30,4 +30,4 @@ const readDirectory = implementFunction("readDirectory", { NODE: (path, params)
30
30
  }).then((value) => DArray.map(value, ({ name, parentPath }) => DPath.resolveFrom(getCurrentWorkDirectoryOrThrow(), [DPath.normalize(`${parentPath}/${name}`)]))) : nodeFileSystem.value.readdir(path, { recursive: params?.recursive }).then((value) => DArray.map(value, (subPath) => DPath.normalize(subPath)))).then(DCommon.innerPipe((paths) => params?.matcher ? DArray.filter(paths, params.matcher) : paths, (value) => DEither.right("file-system-read-directory", value))).catch(handleNodeReadDirectoryError);
31
31
  } });
32
32
  //#endregion
33
- export { readDirectory };
33
+ export { ReadDirectoryError, ReadDirectoryErrorBusy, ReadDirectoryErrorNotDirectory, ReadDirectoryErrorNotFound, ReadDirectoryErrorPermissionDenied, ReadDirectoryErrorTooManyOpenFiles, readDirectory };
@@ -41,4 +41,11 @@ const readFile = require_implementor.implementFunction("readFile", {
41
41
  BUN: (path) => Bun.file(path).bytes().then((value) => _duplojs_lang_either.right("file-system-read-file", value)).catch(handleNodeReadFileError)
42
42
  });
43
43
  //#endregion
44
+ exports.ReadFileError = ReadFileError;
45
+ exports.ReadFileErrorBusy = ReadFileErrorBusy;
46
+ exports.ReadFileErrorIsDirectory = ReadFileErrorIsDirectory;
47
+ exports.ReadFileErrorNotDirectory = ReadFileErrorNotDirectory;
48
+ exports.ReadFileErrorNotFound = ReadFileErrorNotFound;
49
+ exports.ReadFileErrorPermissionDenied = ReadFileErrorPermissionDenied;
50
+ exports.ReadFileErrorTooManyOpenFiles = ReadFileErrorTooManyOpenFiles;
44
51
  exports.readFile = readFile;
@@ -2,32 +2,32 @@ import * as DEither from "@duplojs/lang/either";
2
2
  import type * as DPath from "@duplojs/lang/path";
3
3
  import * as DCommon from "@duplojs/lang/common";
4
4
  declare const ReadFileErrorNotFound_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-file-not-found", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-file-not-found", unknown>>, unknown>;
5
- declare class ReadFileErrorNotFound extends ReadFileErrorNotFound_base {
5
+ export declare class ReadFileErrorNotFound extends ReadFileErrorNotFound_base {
6
6
  }
7
7
  declare const ReadFileErrorPermissionDenied_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-file-permission-denied", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-file-permission-denied", unknown>>, unknown>;
8
- declare class ReadFileErrorPermissionDenied extends ReadFileErrorPermissionDenied_base {
8
+ export declare class ReadFileErrorPermissionDenied extends ReadFileErrorPermissionDenied_base {
9
9
  }
10
10
  declare const ReadFileErrorIsDirectory_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-file-is-directory", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-file-is-directory", unknown>>, unknown>;
11
- declare class ReadFileErrorIsDirectory extends ReadFileErrorIsDirectory_base {
11
+ export declare class ReadFileErrorIsDirectory extends ReadFileErrorIsDirectory_base {
12
12
  }
13
13
  declare const ReadFileErrorNotDirectory_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-file-not-directory", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-file-not-directory", unknown>>, unknown>;
14
- declare class ReadFileErrorNotDirectory extends ReadFileErrorNotDirectory_base {
14
+ export declare class ReadFileErrorNotDirectory extends ReadFileErrorNotDirectory_base {
15
15
  }
16
16
  declare const ReadFileErrorTooManyOpenFiles_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-file-too-many-open-files", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-file-too-many-open-files", unknown>>, unknown>;
17
- declare class ReadFileErrorTooManyOpenFiles extends ReadFileErrorTooManyOpenFiles_base {
17
+ export declare class ReadFileErrorTooManyOpenFiles extends ReadFileErrorTooManyOpenFiles_base {
18
18
  }
19
19
  declare const ReadFileErrorBusy_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-file-busy", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-file-busy", unknown>>, unknown>;
20
- declare class ReadFileErrorBusy extends ReadFileErrorBusy_base {
20
+ export declare class ReadFileErrorBusy extends ReadFileErrorBusy_base {
21
21
  }
22
22
  declare const ReadFileError_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-file-error", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-file-error", unknown>>, unknown>;
23
- declare class ReadFileError extends ReadFileError_base {
23
+ export declare class ReadFileError extends ReadFileError_base {
24
24
  }
25
25
  export type ReadFileErrors = (ReadFileErrorNotFound | ReadFileErrorPermissionDenied | ReadFileErrorIsDirectory | ReadFileErrorNotDirectory | ReadFileErrorTooManyOpenFiles | ReadFileErrorBusy | ReadFileError);
26
26
  export type ReadFileResult = (DEither.Right<"file-system-read-file", Uint8Array> | DEither.Left<"file-system-read-file-error", ReadFileErrors>);
27
27
  declare module '../implementor' {
28
28
  interface ServerFunction {
29
- readFile(path: string & DPath.Path): Promise<ReadFileResult>;
29
+ readFile(path: DPath.AnyPath): Promise<ReadFileResult>;
30
30
  }
31
31
  }
32
- export declare const readFile: (path: string & DPath.Path) => Promise<ReadFileResult>;
32
+ export declare const readFile: (path: DPath.AnyPath) => Promise<ReadFileResult>;
33
33
  export {};
@@ -38,4 +38,4 @@ const readFile = implementFunction("readFile", {
38
38
  BUN: (path) => Bun.file(path).bytes().then((value) => DEither.right("file-system-read-file", value)).catch(handleNodeReadFileError)
39
39
  });
40
40
  //#endregion
41
- export { readFile };
41
+ export { ReadFileError, ReadFileErrorBusy, ReadFileErrorIsDirectory, ReadFileErrorNotDirectory, ReadFileErrorNotFound, ReadFileErrorPermissionDenied, ReadFileErrorTooManyOpenFiles, readFile };
@@ -41,4 +41,11 @@ const readJsonFile = require_implementor.implementFunction("readJsonFile", {
41
41
  BUN: (path) => Bun.file(path).text().then(JSON.parse).then((value) => _duplojs_lang_either.right("file-system-read-json-file", value)).catch(handleNodeReadJsonFileError)
42
42
  });
43
43
  //#endregion
44
+ exports.ReadJsonFileError = ReadJsonFileError;
45
+ exports.ReadJsonFileErrorBusy = ReadJsonFileErrorBusy;
46
+ exports.ReadJsonFileErrorIsDirectory = ReadJsonFileErrorIsDirectory;
47
+ exports.ReadJsonFileErrorNotDirectory = ReadJsonFileErrorNotDirectory;
48
+ exports.ReadJsonFileErrorNotFound = ReadJsonFileErrorNotFound;
49
+ exports.ReadJsonFileErrorPermissionDenied = ReadJsonFileErrorPermissionDenied;
50
+ exports.ReadJsonFileErrorTooManyOpenFiles = ReadJsonFileErrorTooManyOpenFiles;
44
51
  exports.readJsonFile = readJsonFile;
@@ -2,32 +2,32 @@ import * as DCommon from "@duplojs/lang/common";
2
2
  import * as DEither from "@duplojs/lang/either";
3
3
  import type * as DPath from "@duplojs/lang/path";
4
4
  declare const ReadJsonFileErrorNotFound_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-json-file-not-found", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-json-file-not-found", unknown>>, unknown>;
5
- declare class ReadJsonFileErrorNotFound extends ReadJsonFileErrorNotFound_base {
5
+ export declare class ReadJsonFileErrorNotFound extends ReadJsonFileErrorNotFound_base {
6
6
  }
7
7
  declare const ReadJsonFileErrorPermissionDenied_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-json-file-permission-denied", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-json-file-permission-denied", unknown>>, unknown>;
8
- declare class ReadJsonFileErrorPermissionDenied extends ReadJsonFileErrorPermissionDenied_base {
8
+ export declare class ReadJsonFileErrorPermissionDenied extends ReadJsonFileErrorPermissionDenied_base {
9
9
  }
10
10
  declare const ReadJsonFileErrorIsDirectory_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-json-file-is-directory", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-json-file-is-directory", unknown>>, unknown>;
11
- declare class ReadJsonFileErrorIsDirectory extends ReadJsonFileErrorIsDirectory_base {
11
+ export declare class ReadJsonFileErrorIsDirectory extends ReadJsonFileErrorIsDirectory_base {
12
12
  }
13
13
  declare const ReadJsonFileErrorNotDirectory_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-json-file-not-directory", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-json-file-not-directory", unknown>>, unknown>;
14
- declare class ReadJsonFileErrorNotDirectory extends ReadJsonFileErrorNotDirectory_base {
14
+ export declare class ReadJsonFileErrorNotDirectory extends ReadJsonFileErrorNotDirectory_base {
15
15
  }
16
16
  declare const ReadJsonFileErrorTooManyOpenFiles_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-json-file-too-many-open-files", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-json-file-too-many-open-files", unknown>>, unknown>;
17
- declare class ReadJsonFileErrorTooManyOpenFiles extends ReadJsonFileErrorTooManyOpenFiles_base {
17
+ export declare class ReadJsonFileErrorTooManyOpenFiles extends ReadJsonFileErrorTooManyOpenFiles_base {
18
18
  }
19
19
  declare const ReadJsonFileErrorBusy_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-json-file-busy", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-json-file-busy", unknown>>, unknown>;
20
- declare class ReadJsonFileErrorBusy extends ReadJsonFileErrorBusy_base {
20
+ export declare class ReadJsonFileErrorBusy extends ReadJsonFileErrorBusy_base {
21
21
  }
22
22
  declare const ReadJsonFileError_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-json-file-error", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-json-file-error", unknown>>, unknown>;
23
- declare class ReadJsonFileError extends ReadJsonFileError_base {
23
+ export declare class ReadJsonFileError extends ReadJsonFileError_base {
24
24
  }
25
25
  export type ReadJsonFileErrors = (ReadJsonFileErrorNotFound | ReadJsonFileErrorPermissionDenied | ReadJsonFileErrorIsDirectory | ReadJsonFileErrorNotDirectory | ReadJsonFileErrorTooManyOpenFiles | ReadJsonFileErrorBusy | ReadJsonFileError);
26
26
  export type ReadJsonFileResult = (DEither.Right<"file-system-read-json-file", DCommon.Json> | DEither.Left<"file-system-read-json-file-error", ReadJsonFileErrors>);
27
27
  declare module '../implementor' {
28
28
  interface ServerFunction {
29
- readJsonFile(path: string & DPath.Path): Promise<ReadJsonFileResult>;
29
+ readJsonFile(path: DPath.AnyPath): Promise<ReadJsonFileResult>;
30
30
  }
31
31
  }
32
- export declare const readJsonFile: (path: string & DPath.Path) => Promise<ReadJsonFileResult>;
32
+ export declare const readJsonFile: (path: DPath.AnyPath) => Promise<ReadJsonFileResult>;
33
33
  export {};
@@ -38,4 +38,4 @@ const readJsonFile = implementFunction("readJsonFile", {
38
38
  BUN: (path) => Bun.file(path).text().then(JSON.parse).then((value) => DEither.right("file-system-read-json-file", value)).catch(handleNodeReadJsonFileError)
39
39
  });
40
40
  //#endregion
41
- export { readJsonFile };
41
+ export { ReadJsonFileError, ReadJsonFileErrorBusy, ReadJsonFileErrorIsDirectory, ReadJsonFileErrorNotDirectory, ReadJsonFileErrorNotFound, ReadJsonFileErrorPermissionDenied, ReadJsonFileErrorTooManyOpenFiles, readJsonFile };
@@ -37,4 +37,10 @@ const readLink = require_implementor.implementFunction("readLink", {
37
37
  DENO: (path) => Deno.readLink(path).then((value) => _duplojs_lang_either.right("file-system-read-link", value)).catch(handleDenoReadLinkError)
38
38
  });
39
39
  //#endregion
40
+ exports.ReadLinkError = ReadLinkError;
41
+ exports.ReadLinkErrorInvalidArgument = ReadLinkErrorInvalidArgument;
42
+ exports.ReadLinkErrorNotDirectory = ReadLinkErrorNotDirectory;
43
+ exports.ReadLinkErrorNotFound = ReadLinkErrorNotFound;
44
+ exports.ReadLinkErrorPermissionDenied = ReadLinkErrorPermissionDenied;
45
+ exports.ReadLinkErrorTooManyOpenFiles = ReadLinkErrorTooManyOpenFiles;
40
46
  exports.readLink = readLink;
@@ -2,29 +2,29 @@ import * as DEither from "@duplojs/lang/either";
2
2
  import type * as DPath from "@duplojs/lang/path";
3
3
  import * as DCommon from "@duplojs/lang/common";
4
4
  declare const ReadLinkErrorNotFound_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-link-not-found", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-link-not-found", unknown>>, unknown>;
5
- declare class ReadLinkErrorNotFound extends ReadLinkErrorNotFound_base {
5
+ export declare class ReadLinkErrorNotFound extends ReadLinkErrorNotFound_base {
6
6
  }
7
7
  declare const ReadLinkErrorPermissionDenied_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-link-permission-denied", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-link-permission-denied", unknown>>, unknown>;
8
- declare class ReadLinkErrorPermissionDenied extends ReadLinkErrorPermissionDenied_base {
8
+ export declare class ReadLinkErrorPermissionDenied extends ReadLinkErrorPermissionDenied_base {
9
9
  }
10
10
  declare const ReadLinkErrorInvalidArgument_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-link-invalid-argument", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-link-invalid-argument", unknown>>, unknown>;
11
- declare class ReadLinkErrorInvalidArgument extends ReadLinkErrorInvalidArgument_base {
11
+ export declare class ReadLinkErrorInvalidArgument extends ReadLinkErrorInvalidArgument_base {
12
12
  }
13
13
  declare const ReadLinkErrorNotDirectory_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-link-not-directory", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-link-not-directory", unknown>>, unknown>;
14
- declare class ReadLinkErrorNotDirectory extends ReadLinkErrorNotDirectory_base {
14
+ export declare class ReadLinkErrorNotDirectory extends ReadLinkErrorNotDirectory_base {
15
15
  }
16
16
  declare const ReadLinkErrorTooManyOpenFiles_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-link-too-many-open-files", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-link-too-many-open-files", unknown>>, unknown>;
17
- declare class ReadLinkErrorTooManyOpenFiles extends ReadLinkErrorTooManyOpenFiles_base {
17
+ export declare class ReadLinkErrorTooManyOpenFiles extends ReadLinkErrorTooManyOpenFiles_base {
18
18
  }
19
19
  declare const ReadLinkError_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-link-error", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-link-error", unknown>>, unknown>;
20
- declare class ReadLinkError extends ReadLinkError_base {
20
+ export declare class ReadLinkError extends ReadLinkError_base {
21
21
  }
22
22
  export type ReadLinkErrors = (ReadLinkErrorNotFound | ReadLinkErrorPermissionDenied | ReadLinkErrorInvalidArgument | ReadLinkErrorNotDirectory | ReadLinkErrorTooManyOpenFiles | ReadLinkError);
23
23
  export type ReadLinkResult = (DEither.Right<"file-system-read-link", string> | DEither.Left<"file-system-read-link-error", ReadLinkErrors>);
24
24
  declare module '../implementor' {
25
25
  interface ServerFunction {
26
- readLink(path: string & DPath.Path): Promise<ReadLinkResult>;
26
+ readLink(path: DPath.AnyPath): Promise<ReadLinkResult>;
27
27
  }
28
28
  }
29
- export declare const readLink: (path: string & DPath.Path) => Promise<ReadLinkResult>;
29
+ export declare const readLink: (path: DPath.AnyPath) => Promise<ReadLinkResult>;
30
30
  export {};
@@ -34,4 +34,4 @@ const readLink = implementFunction("readLink", {
34
34
  DENO: (path) => Deno.readLink(path).then((value) => DEither.right("file-system-read-link", value)).catch(handleDenoReadLinkError)
35
35
  });
36
36
  //#endregion
37
- export { readLink };
37
+ export { ReadLinkError, ReadLinkErrorInvalidArgument, ReadLinkErrorNotDirectory, ReadLinkErrorNotFound, ReadLinkErrorPermissionDenied, ReadLinkErrorTooManyOpenFiles, readLink };
@@ -41,4 +41,11 @@ const readTextFile = require_implementor.implementFunction("readTextFile", {
41
41
  BUN: (path) => Bun.file(path).text().then((value) => _duplojs_lang_either.right("file-system-read-text-file", value)).catch(handleNodeReadTextFileError)
42
42
  });
43
43
  //#endregion
44
+ exports.ReadTextFileError = ReadTextFileError;
45
+ exports.ReadTextFileErrorBusy = ReadTextFileErrorBusy;
46
+ exports.ReadTextFileErrorIsDirectory = ReadTextFileErrorIsDirectory;
47
+ exports.ReadTextFileErrorNotDirectory = ReadTextFileErrorNotDirectory;
48
+ exports.ReadTextFileErrorNotFound = ReadTextFileErrorNotFound;
49
+ exports.ReadTextFileErrorPermissionDenied = ReadTextFileErrorPermissionDenied;
50
+ exports.ReadTextFileErrorTooManyOpenFiles = ReadTextFileErrorTooManyOpenFiles;
44
51
  exports.readTextFile = readTextFile;
@@ -2,32 +2,32 @@ import * as DCommon from "@duplojs/lang/common";
2
2
  import * as DEither from "@duplojs/lang/either";
3
3
  import type * as DPath from "@duplojs/lang/path";
4
4
  declare const ReadTextFileErrorNotFound_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-text-file-not-found", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-text-file-not-found", unknown>>, unknown>;
5
- declare class ReadTextFileErrorNotFound extends ReadTextFileErrorNotFound_base {
5
+ export declare class ReadTextFileErrorNotFound extends ReadTextFileErrorNotFound_base {
6
6
  }
7
7
  declare const ReadTextFileErrorPermissionDenied_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-text-file-permission-denied", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-text-file-permission-denied", unknown>>, unknown>;
8
- declare class ReadTextFileErrorPermissionDenied extends ReadTextFileErrorPermissionDenied_base {
8
+ export declare class ReadTextFileErrorPermissionDenied extends ReadTextFileErrorPermissionDenied_base {
9
9
  }
10
10
  declare const ReadTextFileErrorIsDirectory_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-text-file-is-directory", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-text-file-is-directory", unknown>>, unknown>;
11
- declare class ReadTextFileErrorIsDirectory extends ReadTextFileErrorIsDirectory_base {
11
+ export declare class ReadTextFileErrorIsDirectory extends ReadTextFileErrorIsDirectory_base {
12
12
  }
13
13
  declare const ReadTextFileErrorNotDirectory_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-text-file-not-directory", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-text-file-not-directory", unknown>>, unknown>;
14
- declare class ReadTextFileErrorNotDirectory extends ReadTextFileErrorNotDirectory_base {
14
+ export declare class ReadTextFileErrorNotDirectory extends ReadTextFileErrorNotDirectory_base {
15
15
  }
16
16
  declare const ReadTextFileErrorTooManyOpenFiles_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-text-file-too-many-open-files", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-text-file-too-many-open-files", unknown>>, unknown>;
17
- declare class ReadTextFileErrorTooManyOpenFiles extends ReadTextFileErrorTooManyOpenFiles_base {
17
+ export declare class ReadTextFileErrorTooManyOpenFiles extends ReadTextFileErrorTooManyOpenFiles_base {
18
18
  }
19
19
  declare const ReadTextFileErrorBusy_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-text-file-busy", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-text-file-busy", unknown>>, unknown>;
20
- declare class ReadTextFileErrorBusy extends ReadTextFileErrorBusy_base {
20
+ export declare class ReadTextFileErrorBusy extends ReadTextFileErrorBusy_base {
21
21
  }
22
22
  declare const ReadTextFileError_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-read-text-file-error", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-read-text-file-error", unknown>>, unknown>;
23
- declare class ReadTextFileError extends ReadTextFileError_base {
23
+ export declare class ReadTextFileError extends ReadTextFileError_base {
24
24
  }
25
25
  export type ReadTextFileErrors = (ReadTextFileErrorNotFound | ReadTextFileErrorPermissionDenied | ReadTextFileErrorIsDirectory | ReadTextFileErrorNotDirectory | ReadTextFileErrorTooManyOpenFiles | ReadTextFileErrorBusy | ReadTextFileError);
26
26
  export type ReadTextFileResult = (DEither.Right<"file-system-read-text-file", string> | DEither.Left<"file-system-read-text-file-error", ReadTextFileErrors>);
27
27
  declare module '../implementor' {
28
28
  interface ServerFunction {
29
- readTextFile(path: string & DPath.Path): Promise<ReadTextFileResult>;
29
+ readTextFile(path: DPath.AnyPath): Promise<ReadTextFileResult>;
30
30
  }
31
31
  }
32
- export declare const readTextFile: (path: string & DPath.Path) => Promise<ReadTextFileResult>;
32
+ export declare const readTextFile: (path: DPath.AnyPath) => Promise<ReadTextFileResult>;
33
33
  export {};
@@ -38,4 +38,4 @@ const readTextFile = implementFunction("readTextFile", {
38
38
  BUN: (path) => Bun.file(path).text().then((value) => DEither.right("file-system-read-text-file", value)).catch(handleNodeReadTextFileError)
39
39
  });
40
40
  //#endregion
41
- export { readTextFile };
41
+ export { ReadTextFileError, ReadTextFileErrorBusy, ReadTextFileErrorIsDirectory, ReadTextFileErrorNotDirectory, ReadTextFileErrorNotFound, ReadTextFileErrorPermissionDenied, ReadTextFileErrorTooManyOpenFiles, readTextFile };
@@ -34,4 +34,9 @@ const realPath = require_implementor.implementFunction("realPath", {
34
34
  DENO: (path) => Deno.realPath(path).then((value) => _duplojs_lang_either.right("file-system-real-path", value)).catch(handleDenoRealPathError)
35
35
  });
36
36
  //#endregion
37
+ exports.RealPathError = RealPathError;
38
+ exports.RealPathErrorNotDirectory = RealPathErrorNotDirectory;
39
+ exports.RealPathErrorNotFound = RealPathErrorNotFound;
40
+ exports.RealPathErrorPermissionDenied = RealPathErrorPermissionDenied;
41
+ exports.RealPathErrorTooManyOpenFiles = RealPathErrorTooManyOpenFiles;
37
42
  exports.realPath = realPath;
@@ -2,26 +2,26 @@ import * as DCommon from "@duplojs/lang/common";
2
2
  import * as DEither from "@duplojs/lang/either";
3
3
  import type * as DPath from "@duplojs/lang/path";
4
4
  declare const RealPathErrorNotFound_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-real-path-not-found", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-real-path-not-found", unknown>>, unknown>;
5
- declare class RealPathErrorNotFound extends RealPathErrorNotFound_base {
5
+ export declare class RealPathErrorNotFound extends RealPathErrorNotFound_base {
6
6
  }
7
7
  declare const RealPathErrorPermissionDenied_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-real-path-permission-denied", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-real-path-permission-denied", unknown>>, unknown>;
8
- declare class RealPathErrorPermissionDenied extends RealPathErrorPermissionDenied_base {
8
+ export declare class RealPathErrorPermissionDenied extends RealPathErrorPermissionDenied_base {
9
9
  }
10
10
  declare const RealPathErrorNotDirectory_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-real-path-not-directory", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-real-path-not-directory", unknown>>, unknown>;
11
- declare class RealPathErrorNotDirectory extends RealPathErrorNotDirectory_base {
11
+ export declare class RealPathErrorNotDirectory extends RealPathErrorNotDirectory_base {
12
12
  }
13
13
  declare const RealPathErrorTooManyOpenFiles_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-real-path-too-many-open-files", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-real-path-too-many-open-files", unknown>>, unknown>;
14
- declare class RealPathErrorTooManyOpenFiles extends RealPathErrorTooManyOpenFiles_base {
14
+ export declare class RealPathErrorTooManyOpenFiles extends RealPathErrorTooManyOpenFiles_base {
15
15
  }
16
16
  declare const RealPathError_base: abstract new (error: Error) => DCommon.DuploJSError<"file-system-real-path-error", Error> & import('@duplojs/lang/kind').Kind<import('@duplojs/lang/kind').Handler<import('@duplojs/lang/kind').Definition<"@DuplojsLangCommon/duplojs-error-file-system-real-path-error", unknown>>, unknown>;
17
- declare class RealPathError extends RealPathError_base {
17
+ export declare class RealPathError extends RealPathError_base {
18
18
  }
19
19
  export type RealPathErrors = (RealPathErrorNotFound | RealPathErrorPermissionDenied | RealPathErrorNotDirectory | RealPathErrorTooManyOpenFiles | RealPathError);
20
20
  export type RealPathResult = (DEither.Right<"file-system-real-path", string> | DEither.Left<"file-system-real-path-error", RealPathErrors>);
21
21
  declare module '../implementor' {
22
22
  interface ServerFunction {
23
- realPath(path: string & DPath.Path): Promise<RealPathResult>;
23
+ realPath(path: DPath.AnyPath): Promise<RealPathResult>;
24
24
  }
25
25
  }
26
- export declare const realPath: (path: string & DPath.Path) => Promise<RealPathResult>;
26
+ export declare const realPath: (path: DPath.AnyPath) => Promise<RealPathResult>;
27
27
  export {};
@@ -31,4 +31,4 @@ const realPath = implementFunction("realPath", {
31
31
  DENO: (path) => Deno.realPath(path).then((value) => DEither.right("file-system-real-path", value)).catch(handleDenoRealPathError)
32
32
  });
33
33
  //#endregion
34
- export { realPath };
34
+ export { RealPathError, RealPathErrorNotDirectory, RealPathErrorNotFound, RealPathErrorPermissionDenied, RealPathErrorTooManyOpenFiles, realPath };