-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { QueryManager } from "moquerie"; | ||
Check failure on line 1 in playgrounds/quick-rest/.moquerie/types/queryManager.ts GitHub Actions / Build and test
Check failure on line 1 in playgrounds/quick-rest/.moquerie/types/queryManager.ts GitHub Actions / Build and test
|
||
import { Message, MyObject, User } from "./resources.js"; | ||
Check failure on line 2 in playgrounds/quick-rest/.moquerie/types/queryManager.ts GitHub Actions / Build and test
Check failure on line 2 in playgrounds/quick-rest/.moquerie/types/queryManager.ts GitHub Actions / Build and test
|
||
|
||
declare module "moquerie" { | ||
export interface QueryManagerProxy { | ||
Message: QueryManager<Message>; | ||
Check failure on line 6 in playgrounds/quick-rest/.moquerie/types/queryManager.ts GitHub Actions / Build and test
|
||
MyObject: QueryManager<MyObject>; | ||
User: QueryManager<User>; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export interface Message { | ||
id: string; | ||
text: string; | ||
user: User; | ||
} | ||
|
||
export interface MyObject { | ||
id: string; | ||
count: number; | ||
title: string; | ||
} | ||
|
||
export interface User { | ||
id: string; | ||
email: string; | ||
messages: Message; | ||
name: string; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export interface MyObject { | ||
id: string | ||
title: string | ||
count: number | ||
} | ||
|
||
export interface User { | ||
id: string | ||
name: string | ||
email: string | ||
messages: Message[] | ||
} | ||
|
||
export interface Message { | ||
id: string | ||
text: string | ||
user: User | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "moquerie-playground-quick-rest", | ||
"type": "module", | ||
"version": "0.0.0", | ||
"private": true, | ||
"scripts": { | ||
"moquerie": "moquerie" | ||
}, | ||
"devDependencies": { | ||
"moquerie": "workspace:*", | ||
"typescript": "^5.2.2" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.