From 4274595b251632ef004d5f1429d7fbdde1cd4a5a Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Sun, 13 Oct 2019 23:48:12 +0200 Subject: Add publish options --- lib/index.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lib/index.ts (limited to 'lib/index.ts') diff --git a/lib/index.ts b/lib/index.ts new file mode 100644 index 0000000..61e38c8 --- /dev/null +++ b/lib/index.ts @@ -0,0 +1,14 @@ +import { getPosts as apiGetPosts } from "./getPosts"; +import { Post } from "./interfaces"; + +export default class Kronikarz { + postPath: string; + + constructor(postPath: string) { + this.postPath = postPath; + } + + getPosts(): Array { + return apiGetPosts(this.postPath); + } +} -- cgit 1.4.1