import { Observable } from 'rxjs/Observable' ; import { SDK } from '../../SDK' ; import { SDKFetch } from '../../SDKFetch' ; import { PostId } from 'teambition-types' ; export function deletePostFetch ( this , _postId ) { return this . delete < void > ( `posts/delete/${ _postId }` ) ; } SDKFetch . prototype . deletePost = deletePostFetch ; declare module '../../SDKFetch' { interface SDKFetch { deletePost : typeof deletePostFetch ; } } export function deletePost ( this , postId ) { return this . lift < void > ( { tableName : 'Post' , request : this . fetch . deletePost ( postId ) , method : 'delete' , clause : { _id : postId } } ) ; } SDK . prototype . deletePost = deletePost ; declare module '../../SDK' { interface SDK { deletePost : typeof deletePost ; } }