Add plop template for API models

This commit is contained in:
Jan Tuomi
2018-06-20 15:00:52 +03:00
parent 9e2403ba8a
commit 5a89162e46
5 changed files with 42 additions and 8 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import { observer } from "mobx-react";
import "./App.scss";
import appStore from "../../stores/AppStore";
import Button from "../Button";
import { getPosts, Post as PostInterface } from "../../models/post";
import { getPosts, Post as PostInterface } from "../../models/Post";
import Post from "../Post";
export interface AppProps {
+1 -1
View File
@@ -1,6 +1,6 @@
import * as React from "react";
import "./Post.scss";
import { Post as PostInterface } from "../../models/posts";
import { Post as PostInterface } from "../../models/Post";
export interface PostProps {
post: PostInterface;
+1 -1
View File
@@ -16,4 +16,4 @@ export async function getPosts(): Promise<Post[]> {
console.error(err);
throw err;
}
}
}