Skip to content

Commit 211ffb5

Browse files
authored
Merge pull request #1008 from aloisklink/fix/export-Config-type
fix(types): export `Config` type from package
2 parents eb7b40d + 431fb82 commit 211ffb5

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

dist/purify.cjs.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,6 @@ type WindowLike = Pick<typeof globalThis, 'DocumentFragment' | 'HTMLTemplateElem
396396
trustedTypes?: typeof window.trustedTypes;
397397
};
398398

399-
export { type Hook, type HookName, type RemovedAttribute, type RemovedElement, type UponSanitizeAttributeHook, type UponSanitizeAttributeHookEvent, type UponSanitizeElementHook, type UponSanitizeElementHookEvent, type WindowLike };
399+
export { type Config, type Hook, type HookName, type RemovedAttribute, type RemovedElement, type UponSanitizeAttributeHook, type UponSanitizeAttributeHookEvent, type UponSanitizeElementHook, type UponSanitizeElementHookEvent, type WindowLike };
400400

401401
export = _default;

dist/purify.es.d.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,4 +396,4 @@ type WindowLike = Pick<typeof globalThis, 'DocumentFragment' | 'HTMLTemplateElem
396396
trustedTypes?: typeof window.trustedTypes;
397397
};
398398

399-
export { type Hook, type HookName, type RemovedAttribute, type RemovedElement, type UponSanitizeAttributeHook, type UponSanitizeAttributeHookEvent, type UponSanitizeElementHook, type UponSanitizeElementHookEvent, type WindowLike, _default as default };
399+
export { type Config, type Hook, type HookName, type RemovedAttribute, type RemovedElement, type UponSanitizeAttributeHook, type UponSanitizeAttributeHookEvent, type UponSanitizeElementHook, type UponSanitizeElementHookEvent, type WindowLike, _default as default };

src/purify.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ import {
2525
objectHasOwnProperty,
2626
} from './utils.js';
2727

28+
export type { Config } from './config';
29+
2830
declare const VERSION: string;
2931

3032
// https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType

0 commit comments

Comments
 (0)