-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from oliver-oloughlin/patch/fix-atomic-generics
Patch/fix atomic generics
- Loading branch information
Showing
3 changed files
with
12 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ Optional and nullable properties are allowed. If you wish to use Zod, you can | |
create your Zod object schema and use its type as your model. | ||
|
||
```ts | ||
import type { Model } from "https://deno.land/x/[email protected].0/mod.ts" | ||
import type { Model } from "https://deno.land/x/[email protected].1/mod.ts" | ||
|
||
interface User extends Model { | ||
username: string | ||
|
@@ -35,7 +35,7 @@ The "createDb" function is used for creating a new database instance. It takes a | |
Deno KV instance and a schema builder function as arguments. | ||
|
||
```ts | ||
import { createDb } from "https://deno.land/x/[email protected].0/mod.ts" | ||
import { createDb } from "https://deno.land/x/[email protected].1/mod.ts" | ||
|
||
const kv = await Deno.openKv() | ||
|
||
|
@@ -425,7 +425,7 @@ result will be an object containing: id, versionstamp and all the entries in the | |
document value. | ||
|
||
```ts | ||
import { flatten } from "https://deno.land/x/[email protected].0/mod.ts" | ||
import { flatten } from "https://deno.land/x/[email protected].1/mod.ts" | ||
|
||
// We assume the document exists in the KV store | ||
const doc = await db.users.find(123n) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters