Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types): export Config type from package #1008

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

aloisklink
Copy link
Contributor

Summary

This PR exports the Config type from DOMPurify, so that people can do:

import type {Config} from 'dompurify';

// or
type Config = import('dompurify').Config;

Background & Context

This is to more closely match @types/dompurify, which allows it, to make migration easier for any TypeScript users that currently use @types/dompurify.

Tasks

N/A

Dependencies

N/A

@cure53 cure53 merged commit 211ffb5 into cure53:main Oct 23, 2024
8 checks passed
@cure53
Copy link
Owner

cure53 commented Oct 23, 2024

This looks great, thank you :)

@aloisklink aloisklink deleted the fix/export-Config-type branch October 23, 2024 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants