about summary refs log tree commit diff stats
path: root/src/js/dict.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-09-09 11:20:42 +0200
committerbptato <nincsnevem662@gmail.com>2023-09-09 11:20:42 +0200
commit07245ef4826298fffc3e34e34a74fdf77c7a4fac (patch)
tree7b0d0aa27da58ad7109fe69d51beed7a159f1aac /src/js/dict.nim
parent11219c7d21c8ec7f438d52de063c4ac25f84711d (diff)
downloadchawan-07245ef4826298fffc3e34e34a74fdf77c7a4fac.tar.gz
javascript: add JSDict type
And use that in extern().
Diffstat (limited to 'src/js/dict.nim')
-rw-r--r--src/js/dict.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/js/dict.nim b/src/js/dict.nim
new file mode 100644
index 00000000..5003b92c
--- /dev/null
+++ b/src/js/dict.nim
@@ -0,0 +1,5 @@
+# This is the WebIDL dictionary type.
+# We only use it for type inference in generics.
+#TODO required members
+
+type JSDict* = object of RootObj