vite-plugin-press
Advanced tools
Comparing version 1.0.2 to 1.0.3
101
client.d.ts
declare module 'virtual:press' { | ||
// eslint-disable-next-line | ||
const component: VirtualPress; | ||
export default component; | ||
} | ||
type component = any | ||
type VideoGroups = { [key: string]: Video[] } | ||
type Posts = { config: any, authors: Author[], posts: Post[], authorSlugs: { [name: string]: Author }, tagSlugs: { [name: string]: string } } | ||
type VideoComponents = { [key: string]: { [group: string]: () => Promise<component> } } | ||
type PostComponents = { [key: string]: () => Promise<component> } | ||
type VirtualPress = { | ||
videos: VideoGroups | ||
posts: Posts | ||
components: { | ||
videos: VideoComponents | ||
posts: PostComponents | ||
export type Component = any | ||
export type VideoGroups = { [key: string]: Video[] } | ||
export type Posts = { config: any, authors: Author[], posts: Post[], authorSlugs: { [name: string]: Author }, tagSlugs: { [name: string]: string } } | ||
export type VideoComponents = { [key: string]: { [group: string]: () => Promise<Component> } } | ||
export type PostComponents = { [key: string]: () => Promise<Component> } | ||
export type VirtualPress = { | ||
videos: VideoGroups | ||
posts: Posts | ||
components: { | ||
videos: VideoComponents | ||
posts: PostComponents | ||
} | ||
} | ||
} | ||
export type Doc = { | ||
title: string | ||
slug: string | ||
path: string | ||
fileName: string | ||
content: string | ||
preview: string | ||
date: string | ||
tags: string[] | ||
wordCount: number | ||
lineCount: number | ||
minutesToRead: number | ||
order?: number | ||
draft?: boolean | ||
} | ||
export type Post = Doc & { | ||
summary: string | ||
author: string | ||
image: string | ||
} | ||
export type Video = Doc & { | ||
url: string | ||
} | ||
export type Author = { | ||
name: string | ||
email: string | ||
bio: string | ||
profileUrl: string | ||
twitterUrl: string | ||
threadsUrl: string | ||
gitHubUrl: string | ||
mastodonUrl: string | ||
} | ||
type Doc = { | ||
title: string | ||
slug: string | ||
path: string | ||
fileName: string | ||
content: string | ||
preview: string | ||
date: string | ||
tags: string[] | ||
wordCount: number | ||
lineCount: number | ||
minutesToRead: number | ||
order?: number | ||
draft?: boolean | ||
export default VirtualPress; | ||
} | ||
type Post = Doc & { | ||
summary: string | ||
author: string | ||
image: string | ||
} | ||
type Video = Doc & { | ||
url: string | ||
} | ||
type Author = { | ||
name: string | ||
email: string | ||
bio: string | ||
profileUrl: string | ||
twitterUrl: string | ||
threadsUrl: string | ||
gitHubUrl: string | ||
mastodonUrl: string | ||
} |
@@ -52,2 +52,53 @@ import { Plugin } from 'vite'; | ||
type Component = any | ||
type VideoGroups = { [key: string]: Video[] } | ||
type Posts = { config: any, authors: Author[], posts: Post[], authorSlugs: { [name: string]: Author }, tagSlugs: { [name: string]: string } } | ||
type VideoComponents = { [key: string]: { [group: string]: () => Promise<Component> } } | ||
type PostComponents = { [key: string]: () => Promise<Component> } | ||
type VirtualPress = { | ||
videos: VideoGroups | ||
posts: Posts | ||
components: { | ||
videos: VideoComponents | ||
posts: PostComponents | ||
} | ||
} | ||
type Doc = { | ||
title: string | ||
slug: string | ||
path: string | ||
fileName: string | ||
content: string | ||
preview: string | ||
date: string | ||
tags: string[] | ||
wordCount: number | ||
lineCount: number | ||
minutesToRead: number | ||
order?: number | ||
draft?: boolean | ||
} | ||
type Post = Doc & { | ||
summary: string | ||
author: string | ||
image: string | ||
} | ||
type Video = Doc & { | ||
url: string | ||
} | ||
type Author = { | ||
name: string | ||
email: string | ||
bio: string | ||
profileUrl: string | ||
twitterUrl: string | ||
threadsUrl: string | ||
gitHubUrl: string | ||
mastodonUrl: string | ||
} | ||
/** | ||
@@ -60,2 +111,2 @@ * Static markdown content for creating blogs, videos and other content | ||
export { export_default as default, extractor as matter }; | ||
export { type VirtualPress, export_default as default, extractor as matter }; |
{ | ||
"name": "vite-plugin-press", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Static markdown content for creating blogs, videos", | ||
@@ -38,2 +38,3 @@ "repository": { | ||
"dev": "npm run build -- --watch", | ||
"typecheck": "tsc --noEmit", | ||
"release": "bump patch --commit --push --tag && npm publish", | ||
@@ -40,0 +41,0 @@ "lint": "eslint \"{src,test}/**/*.ts\"", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
205419
6113