Преглед изворни кода

fix node-ops type declaration

Evan You пре 10 година
родитељ
комит
c908352d7c
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/platforms/web/runtime/node-ops.js

+ 1 - 1
src/platforms/web/runtime/node-ops.js

@@ -30,7 +30,7 @@ export function parentNode (node: Node): ?Element {
   return node.parentElement
 }
 
-export function nextSibling (node: Node): Node {
+export function nextSibling (node: Node): ?Node {
   return node.nextSibling
 }