Skip to content

Commit 6b4ea18

Browse files
committed
Types
1 parent f90bdd5 commit 6b4ea18

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

docs/source/misc/on-types.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# AA
2+
3+
JavaScript does allow you to ignore ignore the call this library with arbitrary values as arguments.
4+
In general using this driver API with values of types different than provided than described in the documentation
5+
(JS Docs) can be considered UB.
6+
7+
Withing JavaScript Objects we allow for some duck-typing - this applies to all of the config options and named parameters.
8+
Any object passed there that has required fields is considered valid.
9+
There are some exceptions, where we rely on some other aspects of the objects, that the field present.
10+
11+
- Policies: In policies we expect objects with specified constructors. This means you have to used objects as provided through the driver.
12+
- Type guessing & encoding: Parts of type guessing and encoding depend on receiving values of specified types.
13+
14+
When it comes to built-in types, we may perform some explicit checks to ensure you have provided expected builtin type.

0 commit comments

Comments
 (0)