mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-04-05 09:04:00 -04:00
Merge of Insiders features tied to 'Ghost Pepper' funding goal
This commit is contained in:
42
typings/_/index.d.ts
vendored
42
typings/_/index.d.ts
vendored
@@ -52,13 +52,47 @@ declare global {
|
||||
const __search: GlobalSearchConfig | undefined
|
||||
|
||||
/**
|
||||
* Global function to prefix storage items
|
||||
* Fetch the value for a key from the given storage
|
||||
*
|
||||
* This function is defined in `partials/javascripts/base.html`, so it can be
|
||||
* used from the templates, as well as from the application bundle.
|
||||
*
|
||||
* @template T - Data type
|
||||
*
|
||||
* @param key - Key
|
||||
* @param storage - Storage (default: local storage)
|
||||
* @param base - Base URL (default: current base)
|
||||
*
|
||||
* @return Value or nothing
|
||||
*/
|
||||
function __prefix(key: string): string
|
||||
function __md_get<T>(
|
||||
key: string, storage?: Storage, base?: string
|
||||
): T | null
|
||||
|
||||
/**
|
||||
* Google Analytics
|
||||
* Persist a key-value pair in the given storage
|
||||
*
|
||||
* This function is defined in `partials/javascripts/base.html`, so it can be
|
||||
* used from the templates, as well as from the application bundle.
|
||||
*
|
||||
* @template T - Data type
|
||||
*
|
||||
* @param key - Key
|
||||
* @param value - Value
|
||||
* @param storage - Storage (default: local storage)
|
||||
* @param base - Base URL (default: current base)
|
||||
*/
|
||||
function __md_set<T>(
|
||||
key: string, value: T, storage?: Storage, base?: string
|
||||
): void
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
/**
|
||||
* Google Analytics
|
||||
*/
|
||||
declare global {
|
||||
function ga(...args: string[]): void
|
||||
}
|
||||
|
||||
@@ -74,7 +108,7 @@ declare global {
|
||||
var viewport$: Observable<Viewport> /* Viewport obsevable */
|
||||
var tablet$: Observable<boolean> /* Tablet breakpoint observable */
|
||||
var screen$: Observable<boolean> /* Screen breakpoint observable */
|
||||
var print$: Observable<void> /* Print mode observable */
|
||||
var print$: Observable<boolean> /* Print observable */
|
||||
var alert$: Subject<string> /* Alert subject */
|
||||
var component$: Observable<Component>/* Component observable */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user