@state-less/leap-backend
Version:
A collection of open source fullstack services
39 lines (38 loc) • 1.09 kB
TypeScript
import { Admins } from '../../lib/types';
export type PostProps = {
id: string;
body: string;
approved: boolean;
setPostSticky: (sticky: boolean) => void;
sticky: boolean;
deleted: boolean;
approvePost: () => void;
deletePost: () => void;
owner: any;
users?: Admins;
};
export declare const Answer: ({ id, deleteAnswer, users, ...initialAnswer }: PostProps & {
deleteAnswer: () => void;
}, { context }: {
context: any;
}) => any;
export declare const Post: ({ id, deletePost, approvePost, setPostSticky, users, ...initialPost }: PostProps, { context }: {
context: any;
}) => any;
export declare enum ForumPolicies {
PostsNeedApproval = "PostsNeedApproval"
}
export type ForumProps = {
key: string;
id: string;
name: string;
policies?: ForumPolicies[];
users?: Admins;
};
export declare const Forum: ({ id, name, policies, users }: ForumProps, { key, context, clientProps, initiator }: {
key: any;
context: any;
clientProps: any;
initiator: any;
}) => any;
export declare const Platform: () => any;