From 3f410f23d8a5df15825c97a681371447caf1aa6e Mon Sep 17 00:00:00 2001 From: Remco Haszing Date: Fri, 4 Sep 2026 09:44:24 +0200 Subject: [PATCH] Add TypeScript type definitions This way the project can be consumed in TypeScript projects. --- lib/safe-parse.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lib/safe-parse.d.ts diff --git a/lib/safe-parse.d.ts b/lib/safe-parse.d.ts new file mode 100644 index 0000000..e18cace --- /dev/null +++ b/lib/safe-parse.d.ts @@ -0,0 +1,9 @@ +import type { Parser } from 'postcss' + +/** + * A fault-tolerant CSS parser for [PostCSS], which will find & fix syntax + * errors, capable of parsing any input. + */ +declare const safe: Parser + +export = safe