Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
"type": "git",
"url": "git+ssh://[email protected]/portabletext/react-portabletext.git"
},
"license": "MIT",
"author": "Sanity.io <[email protected]>",
"license": "MIT",
"sideEffects": false,
"type": "module",
"main": "./dist/index.js",
"exports": {
".": "./src/index.ts",
"./package.json": "./package.json"
},
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist",
"!dist/stats.html"
"!dist/stats.html",
"dist"
],
"scripts": {
"build": "tsdown",
Expand Down
6 changes: 3 additions & 3 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,10 @@ export interface PortableTextMarkComponentProps<M extends TypedObject = Arbitrar
*/
export type UnknownNodeType =
| {
_type: string;
[key: string]: unknown;
_type: string
[key: string]: unknown
}
| TypedObject;
| TypedObject

/**
* Function that renders any node that might appear in a portable text array or block,
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.dist.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": ["./tsconfig.json", "@sanity/tsconfig/isolated-declarations"],
"include": ["./src"],
"include": ["./src"]
}
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"rootDir": ".",
"outDir": "./dist",

"noUncheckedIndexedAccess": true,
},
"noUncheckedIndexedAccess": true
}
}