-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.d.ts
36 lines (31 loc) · 901 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { RiotComponentWrapper } from 'riot'
export interface RenderingFragments {
html: string
css: string
}
export interface domGlobals {
create: () => void
clear: () => void
}
export const asyncRenderTimeout: number
export function renderAsync<Props extends unknown>(
componentName: string,
componentShell: RiotComponentWrapper<Props>,
props?: Props,
): Promise<string>
export function renderAsyncFragments<Props extends unknown>(
componentName: string,
componentShell: RiotComponentWrapper<Props>,
props?: Props,
): Promise<RenderingFragments>
export function fragments<Props extends unknown>(
componentName: string,
componentShell: RiotComponentWrapper<Props>,
props?: Props,
): RenderingFragments
export function render<Props extends unknown>(
componentName: string,
componentShell: RiotComponentWrapper<Props>,
props?: Props,
): string
export default render