Skip to content

Commit

Permalink
Add status + scheduled to pages + blog posts
Browse files Browse the repository at this point in the history
  • Loading branch information
ViolanteCodes committed Oct 25, 2024
1 parent 88734fd commit 3e196fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ Using ES6 or Typescript:

```js
import Butter from "buttercms";
const butter = Butter("api_token_567abe");
const butter = Butter("your_api_token");
```

Using CDN:

```html
<script>
const butter = Butter("api_token_567abe");
const butter = Butter("your_api_token");
</script>
```

Expand Down
5 changes: 4 additions & 1 deletion lib/butter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,11 @@ export namespace Butter {
AuthorSlug extends string = string,
PostSlug extends string = string
> {
status: "published" | "draft";
status: "published" | "draft" | "scheduled";
created: Date;
updated: Date;
published: Date;
scheduled: Date;
title: string;
slug: PostSlug;
summary: string;
Expand Down Expand Up @@ -384,6 +385,8 @@ export namespace Butter {
name: string;
published: Date;
updated: Date;
scheduled: Date;
status: "published" | "draft" | "scheduled";
fields: PageModel;
}

Expand Down

0 comments on commit 3e196fb

Please sign in to comment.