Added markdown rendering
This commit is contained in:
parent
26ca510785
commit
5a0340c226
172 changed files with 12198 additions and 8338 deletions
19
static/js/lib/node_modules/preact/compat/src/suspense.d.ts
generated
vendored
Normal file
19
static/js/lib/node_modules/preact/compat/src/suspense.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
// Intentionally not using a relative path to take advantage of
|
||||
// the TS version resolution mechanism
|
||||
import { Component, ComponentChild, ComponentChildren } from 'preact';
|
||||
|
||||
//
|
||||
// Suspense/lazy
|
||||
// -----------------------------------
|
||||
export function lazy<T>(
|
||||
loader: () => Promise<{ default: T } | T>
|
||||
): T extends { default: infer U } ? U : T;
|
||||
|
||||
export interface SuspenseProps {
|
||||
children?: ComponentChildren;
|
||||
fallback: ComponentChildren;
|
||||
}
|
||||
|
||||
export class Suspense extends Component<SuspenseProps> {
|
||||
render(): ComponentChild;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue