diff --git a/mod.ts b/mod.ts index 55cdf7b..4f60ddb 100644 --- a/mod.ts +++ b/mod.ts @@ -20,13 +20,12 @@ export class Deta { * @param name The name of your database * @returns A new database instance */ - Base(name: string) { + Base(name: string) { return new Base(this, name); } } -// TODO: Make this nested inside Deta -class Base { +class Base { name: string; rootUrl: URL; deta: Deta; @@ -129,7 +128,7 @@ class Base { } } -interface Updates { +interface Updates { /**Fields to update*/ set?: Partial; /**Fields to increment by a number.*/