Skip to content

Commit

Permalink
chore(utils): update example for strict UID type
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Mar 31, 2021
1 parent dc600c3 commit 35c2a1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/workers/kv-todos/model.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import * as DB from 'worktop/kv';
import { uid as toUID } from 'worktop/utils';
import type { UID } from 'worktop/utils';
import type { KV } from 'worktop/kv';

declare const TODOS: KV.Namespace;

export interface Todo {
uid: string;
uid: UID<8>;
title: string;
done: boolean;
created_at: number;
Expand Down

0 comments on commit 35c2a1b

Please sign in to comment.