File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -17,17 +17,19 @@ SPDX-License-Identifier: Apache-2.0
1717Copyright (c) OWASP Foundation. All Rights Reserved.
1818*/
1919
20+ /**
21+ * This module tries to be as compatible as possible, it only uses basic methods that are known to be working in all FileSystem abstraction-layers.
22+ * In addition, we use type parameters for all `PathLike`s, so downstream users can utilize their implementations accordingly.
23+ *
24+ * @module
25+ */
26+
2027import type { Stats } from 'node:fs'
2128
2229import { guessMimeTypeForLicenseFile } from '../_helpers/mime.node'
2330import { AttachmentEncoding } from '../enums/attachmentEncoding'
2431import { Attachment } from '../models/attachment'
2532
26- /*
27- * this module tries to be as compatible as possible - it only uses basic methods that are known to be working in all FS-abstraction-layers.
28- * In addition, we use type-vars for all PathLikes, so downstream users can utilize their implementations accordingly.
29- */
30-
3133export interface FsUtils < P extends string > {
3234 readdirSync : ( path : P ) => P [ ]
3335 readFileSync : ( path : P ) => Buffer
You can’t perform that action at this time.
0 commit comments