Comparing version
import * as _unhead_schema from '@unhead/schema'; | ||
import { Head, CreateClientHeadOptions, Unhead, DomPluginOptions, RenderDomHeadOptions } from '@unhead/schema'; | ||
import { Head, CreateClientHeadOptions, DomPluginOptions, Unhead, RenderDomHeadOptions } from '@unhead/schema'; | ||
declare function createHead<T extends Record<string, any> = Head>(options?: CreateClientHeadOptions): _unhead_schema.Unhead<T>; | ||
/** | ||
* Queue a debounced update of the DOM head. | ||
*/ | ||
declare function debouncedRenderDOMHead<T extends Unhead<any>>(head: T, options?: DomPluginOptions): Promise<void>; | ||
declare function DomPlugin(options: DomPluginOptions): _unhead_schema.HeadPluginInput; | ||
declare function DomPlugin(options?: DomPluginOptions): _unhead_schema.HeadPluginInput; | ||
/** | ||
@@ -25,2 +20,4 @@ * Supports DOM event handlers (i.e `onload`) as functions. | ||
export { ClientEventHandlerPlugin, DomPlugin, createHead, debouncedRenderDOMHead, renderDOMHead }; | ||
declare function createDebouncedFn(callee: () => void, delayer: (fn: () => void) => void): () => void; | ||
export { ClientEventHandlerPlugin, DomPlugin, createDebouncedFn, createHead, renderDOMHead }; |
{ | ||
"name": "unhead", | ||
"type": "module", | ||
"version": "2.0.0-alpha.8", | ||
"version": "2.0.0-alpha.9", | ||
"description": "Full-stack <head> manager built for any framework.", | ||
@@ -82,4 +82,4 @@ "author": { | ||
"hookable": "^5.5.3", | ||
"@unhead/schema": "2.0.0-alpha.8", | ||
"@unhead/shared": "2.0.0-alpha.8" | ||
"@unhead/schema": "2.0.0-alpha.9", | ||
"@unhead/shared": "2.0.0-alpha.9" | ||
}, | ||
@@ -86,0 +86,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2785
0.36%119525
-0.26%+ Added
+ Added
- Removed
- Removed
Updated
Updated