react-playmakers
Version:
React wrapper providing utilities for PlayMakers integration
26 lines (25 loc) • 756 B
TypeScript
import { CategoryParentType } from "./categories.types";
export interface SchemaPayloadType {
description: string;
tags: string[];
voteThresholdSettings: string;
name: string;
data: string;
categoryId: string;
projectId: string;
displayInteractive: string;
approvalMethod: string;
state: "draft" | "open" | "closed";
displayThumbnail: string;
}
export interface SchemaType extends SchemaPayloadType {
id: string;
createdAt: string;
thumbnail: string;
category: CategoryParentType[];
type: string;
}
export interface SchemaExtendedType extends SchemaType {
pushState: (state: SchemaType["state"]) => Promise<SchemaExtendedType>;
delete: () => Promise<void>;
}