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 f09294f commit e211505Copy full SHA for e211505
docs/schema.md
@@ -23,7 +23,7 @@ const userSchema = schema({
23
To interact with your collection using this schema, create two important derived types, the model type and the document type:
24
25
```ts
26
-type UserDocument = typeof userSchema[0];
+type UserDocument = (typeof userSchema)[0];
27
const UserModel = papr.model('users', userSchema);
28
```
29
0 commit comments