Skip to content

Commit dca41c6

Browse files
committed
remove exports of types
1 parent 500cb37 commit dca41c6

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

lib/getHashDigest.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { BinaryToTextEncoding } from "crypto";
22

3-
export const baseEncodeTables = {
3+
const baseEncodeTables = {
44
26: "abcdefghijklmnopqrstuvwxyz",
55
32: "123456789abcdefghjkmnpqrstuvwxyz", // no 0lio
66
36: "0123456789abcdefghijklmnopqrstuvwxyz",
@@ -11,13 +11,17 @@ export const baseEncodeTables = {
1111
64: "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_",
1212
};
1313

14-
export type BaseEncoding = keyof typeof baseEncodeTables;
14+
type BaseEncoding = keyof typeof baseEncodeTables;
15+
16+
/**
17+
* @public
18+
*/
1519
export type DigestType = `base${BaseEncoding}`;
1620

1721
/**
18-
* @param uint32Array - Treated as a long base-0x100000000 number, little endian
19-
* @param divisor - The divisor
20-
* @return Modulo (remainder) of the division
22+
* @param {Uint32Array} uint32Array Treated as a long base-0x100000000 number, little endian
23+
* @param {number} divisor The divisor
24+
* @return {number} Modulo (remainder) of the division
2125
*/
2226
function divmod32(uint32Array: Uint32Array, divisor: number): number {
2327
let carry = 0;

lib/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ export { default as getHashDigest } from "./getHashDigest";
44
export { default as interpolateName } from "./interpolateName";
55

66
export type { IInterpolateNameOptions } from "./interpolateName";
7-
export type { DigestType, BaseEncoding, baseEncodeTables } from "./getHashDigest";
7+
export type { DigestType } from "./getHashDigest";

lib/interpolateName.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import type { LoaderContext } from "webpack";
22
import path from "path";
33
import getHashDigest from "./getHashDigest";
44

5+
/**
6+
* @public
7+
*/
58
export interface IInterpolateNameOptions {
69
content?: Buffer;
710
context?: string;

0 commit comments

Comments
 (0)