Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types): export head schemas #87

Merged
merged 2 commits into from
Sep 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import { stringifyAttrs } from "./stringify-attrs"
import { isEqualNode } from "./utils"
import type { HeadObjectPlain, HeadObject, TagKeys } from "./types"

export * from './types'

type MaybeRef<T> = T | Ref<T>

export type HeadAttrs = { [k: string]: any }
Expand Down
8 changes: 4 additions & 4 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
import type { Head as PlainHead, ReactiveHead } from "@zhead/schema-vue"

interface HandlesDuplicates {
export interface HandlesDuplicates {
/**
* By default, tags which share the same unique key `name, `property` are de-duped. To allow duplicates
* to be made you can provide a unique key for each entry.
*/
key?: string
}

interface RendersToBody {
export interface RendersToBody {
/**
* Render tag at the end of the <body>.
*/
body?: boolean
}

interface RendersInnerContent {
export interface RendersInnerContent {
/**
* Sets the textContent of an element.
*/
children?: string
}

interface HeadAugmentations {
export interface HeadAugmentations {
base: HandlesDuplicates & { body?: never; children?: never }
link: RendersToBody & { key?: never; children?: never }
meta: HandlesDuplicates & { children?: never; body?: never }
Expand Down