Skip to content

Commit 98341e1

Browse files
committed
Change optional type to optional parameter
1 parent 639dc83 commit 98341e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderers/dom/fiber/ReactDOMFiberEntry.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ type PublicRoot = {
702702

703703
function PublicRootNode(
704704
container: DOMContainer | (() => DOMContainer),
705-
namespace: ?string,
705+
namespace?: string,
706706
) {
707707
if (typeof container === 'function') {
708708
if (typeof namespace !== 'string') {
@@ -750,7 +750,7 @@ PublicRootNode.prototype.unmount = function(callback) {
750750
var ReactDOMFiber = {
751751
unstable_createRoot(
752752
container: DOMContainer | (() => DOMContainer),
753-
namespace: ?string,
753+
namespace?: string,
754754
): PublicRoot {
755755
return new PublicRootNode(container, namespace);
756756
},

0 commit comments

Comments
 (0)