diff --git a/.changeset/wise-spiders-jog.md b/.changeset/wise-spiders-jog.md new file mode 100644 index 0000000000..6bfa0b580a --- /dev/null +++ b/.changeset/wise-spiders-jog.md @@ -0,0 +1,5 @@ +--- +'@rrweb/types': patch +--- + +Fix type error when using `"moduleResolution": "NodeNext"`. diff --git a/packages/types/package.json b/packages/types/package.json index 5761b1a79c..079b350923 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -31,7 +31,8 @@ "exports": { ".": { "import": "./dist/rrweb-types.js", - "require": "./dist/rrweb-types.umd.cjs" + "require": "./dist/rrweb-types.umd.cjs", + "types": "./dist/index.d.ts" } }, "files": [