From f6f55d2fd0e1b85aef707d1b5bb021430e64331d Mon Sep 17 00:00:00 2001
From: Joris
Date: Wed, 9 Apr 2025 23:09:02 +0200
Subject: Replace double quotes by simple quotes
---
 src/rx.ts | 32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)
(limited to 'src')
diff --git a/src/rx.ts b/src/rx.ts
index 5af56d5..2ff8889 100644
--- a/src/rx.ts
+++ b/src/rx.ts
@@ -413,7 +413,7 @@ function rxRun(
 }
 
 function isRx(x: any): x is Rx {
-  return x != null && x.type !== undefined && (x.type === "Var" || x.type === "Map" || x.type === "FlatMap" || x.type === 'Sequence' || x.type === 'Pure')
+  return x != null && x.type !== undefined && (x.type === 'Var' || x.type === 'Map' || x.type === 'FlatMap' || x.type === 'Sequence' || x.type === 'Pure')
 }
 
 function isPure(x: any): x is Pure {
@@ -421,19 +421,19 @@ function isPure(x: any): x is Pure {
 }
 
 function isVar(x: any): x is Var {
-  return x.type === "Var"
+  return x.type === 'Var'
 }
 
 function isMap(x: any): x is Map {
-  return x.type === "Map"
+  return x.type === 'Map'
 }
 
 function isFlatMap(x: any): x is FlatMap {
-  return x.type === "FlatMap"
+  return x.type === 'FlatMap'
 }
 
 function isSequence(x: any): x is Sequence {
-  return x.type === "Sequence"
+  return x.type === 'Sequence'
 }
 
 // Append
@@ -459,7 +459,7 @@ function appendChild(state: State, element: Element, child: Html, lastAdded?: No
       remove: () => removes.forEach((o) => o()),
       lastAdded
     }
-  } else if (typeof child == "string") {
+  } else if (typeof child == 'string') {
     const node = document.createTextNode(child)
     appendNode(element, node, lastAdded)
     return {
@@ -467,7 +467,7 @@ function appendChild(state: State, element: Element, child: Html, lastAdded?: No
       remove: () => element.removeChild(node),
       lastAdded: node
     }
-  } else if (typeof child == "number") {
+  } else if (typeof child == 'number') {
     return appendChild(state, element, child.toString(), lastAdded)
   } else if (isTag(child)) {
     const { tagName, attributes, children, onmount, onunmount } = child
@@ -665,31 +665,31 @@ function isSvg(tagName: string): boolean {
 }
 
 function isTag(x: any): x is Tag {
-  return x != null && x.type === "Tag"
+  return x != null && x.type === 'Tag'
 }
 
 function isWithState(x: any): x is WithState {
-  return x != null && x.type === "WithState"
+  return x != null && x.type === 'WithState'
 }
 
 function isWithState2(x: any): x is WithState2 {
-  return x != null && x.type === "WithState2"
+  return x != null && x.type === 'WithState2'
 }
 
 function isWithState3(x: any): x is WithState3 {
-  return x != null && x.type === "WithState3"
+  return x != null && x.type === 'WithState3'
 }
 
 function isWithState4(x: any): x is WithState4 {
-  return x != null && x.type === "WithState4"
+  return x != null && x.type === 'WithState4'
 }
 
 function isWithState5(x: any): x is WithState5 {
-  return x != null && x.type === "WithState5"
+  return x != null && x.type === 'WithState5'
 }
 
 function isWithState6(x: any): x is WithState6 {
-  return x != null && x.type === "WithState6"
+  return x != null && x.type === 'WithState6'
 }
 
 function appendNode(base: Element, node: Node, lastAdded?: Node) {
@@ -708,9 +708,9 @@ function setAttribute(setAttr: (key: any, value: any) => void, element: Element,
   } else if (attribute === false) {
     // @ts-ignore
     if (key in element) setAttr(key, false)
-  } else if (typeof attribute === "number") {
+  } else if (typeof attribute === 'number') {
     setAttr(key, attribute.toString())
-  } else if (typeof attribute === "string") {
+  } else if (typeof attribute === 'string') {
     setAttr(key, attribute)
   } else {
     // @ts-ignore
-- 
cgit v1.2.3