mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-25 17:24:48 +10:00
feat(object transactions): support more types
This commit is contained in:
Vendored
+4
-2
@@ -1,5 +1,6 @@
|
||||
import { Developer, Publisher } from "@prisma/client";
|
||||
import { ObjectReference } from "../objects";
|
||||
import { ObjectTransactionalHandler, TransactionDataType } from "../objects/transactional";
|
||||
|
||||
export interface GameMetadataSearchResult {
|
||||
id: string;
|
||||
@@ -54,16 +55,17 @@ export type DeveloperMetadata = PublisherMetadata;
|
||||
|
||||
export interface _FetchGameMetadataParams {
|
||||
id: string;
|
||||
name: string;
|
||||
|
||||
publisher: (query: string) => Promise<Publisher>;
|
||||
developer: (query: string) => Promise<Developer>;
|
||||
|
||||
createObject: (url: string) => ObjectReference;
|
||||
createObject: (data: TransactionDataType) => ObjectReference;
|
||||
}
|
||||
|
||||
export interface _FetchPublisherMetadataParams {
|
||||
query: string;
|
||||
createObject: (url: string) => ObjectReference;
|
||||
createObject: (data: TransactionDataType) => ObjectReference;
|
||||
}
|
||||
|
||||
export type _FetchDeveloperMetadataParams = _FetchPublisherMetadataParams;
|
||||
|
||||
Reference in New Issue
Block a user