We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac55881 commit 3a2c7f6Copy full SHA for 3a2c7f6
README.md
@@ -97,6 +97,9 @@ const users = db.prepare("SELECT * FROM users").all();
97
98
Generates types for the input parameters of a query.
99
100
+The type of an input parameter is set to `unknown` and for named
101
+parameters you can replace that `unknown` with a more specific type.
102
+
103
```ts
104
// Bad
105
const user = db.prepare("SELECT * FROM users WHERE id = :id").get({ id: 1 });
@@ -111,6 +114,9 @@ const user = db
111
114
112
115
Generates types for the result of a query.
113
116
117
+If the type of a result column can't be determined then it will be typed
118
+as `unknown` which you can replace with a more specific type.
119
120
121
122
const user = db.prepare("SELECT * FROM users").all();
0 commit comments