Skip to content

Commit fdf0ad7

Browse files
committed
docs
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 7d793ef commit fdf0ad7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/utils/licenseUtility.node.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,19 @@ SPDX-License-Identifier: Apache-2.0
1717
Copyright (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+
2027
import type { Stats } from 'node:fs'
2128

2229
import { guessMimeTypeForLicenseFile } from '../_helpers/mime.node'
2330
import { AttachmentEncoding } from '../enums/attachmentEncoding'
2431
import { 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-
3133
export interface FsUtils<P extends string> {
3234
readdirSync: (path: P ) => P[]
3335
readFileSync: (path: P) => Buffer

0 commit comments

Comments
 (0)