Skip to content

Commit

Permalink
fix(types): export head schemas (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Sep 16, 2022
1 parent 4e2ed52 commit 6f919c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
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

0 comments on commit 6f919c7

Please sign in to comment.