/
opt
/
canhelp
/
node_modules
/
hono
/
dist
/
types
/
helper
/
css
/
/opt/canhelp/node_modules/hono/dist/types/helper/css
mkdir
upload
Name
Size
Mode
Actions
common.d.ts
2093
0644
edit
dl
rm
index.d.ts
2001
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/hono/dist/types/helper/css/index.d.ts
(2001B)
/** * @module * css Helper for Hono. */ import type { HtmlEscapedString } from '../../utils/html'; import type { CssClassName as CssClassNameCommon, CssVariableType } from './common'; export { rawCssString } from './common'; type CssClassName = HtmlEscapedString & CssClassNameCommon; interface CssType { (strings: TemplateStringsArray, ...values: CssVariableType[]): Promise<string>; } interface CxType { (...args: (CssClassName | Promise<string> | string | boolean | null | undefined)[]): Promise<string>; } interface KeyframesType { (strings: TemplateStringsArray, ...values: CssVariableType[]): CssClassNameCommon; } interface ViewTransitionType { (strings: TemplateStringsArray, ...values: CssVariableType[]): Promise<string>; (content: Promise<string>): Promise<string>; (): Promise<string>; } interface StyleType { (args?: { children?: Promise<string>; nonce?: string; }): HtmlEscapedString; } /** * @experimental * `createCssContext` is an experimental feature. * The API might be changed. */ export declare const createCssContext: ({ id }: { id: Readonly<string>; }) => DefaultContextType; interface DefaultContextType { css: CssType; cx: CxType; keyframes: KeyframesType; viewTransition: ViewTransitionType; Style: StyleType; } /** * @experimental * `css` is an experimental feature. * The API might be changed. */ export declare const css: CssType; /** * @experimental * `cx` is an experimental feature. * The API might be changed. */ export declare const cx: CxType; /** * @experimental * `keyframes` is an experimental feature. * The API might be changed. */ export declare const keyframes: KeyframesType; /** * @experimental * `viewTransition` is an experimental feature. * The API might be changed. */ export declare const viewTransition: ViewTransitionType; /** * @experimental * `Style` is an experimental feature. * The API might be changed. */ export declare const Style: StyleType;
Save
cmd:
run