r.d.ts 932 B

12345678910111213
  1. import { preactHooks, preact, serverRender } from './3rd-party/preact.js';
  2. import { act } from './3rd-party/preact-test-utils.js';
  3. declare const createContext: typeof preact.createContext;
  4. declare const useCallback: typeof preactHooks.useCallback, useEffect: typeof preactHooks.useEffect, useMemo: typeof preactHooks.useMemo, useState: typeof preactHooks.useState, useContext: typeof preactHooks.useContext, useLayoutEffect: typeof preactHooks.useLayoutEffect, useRef: typeof preactHooks.useRef, useReducer: typeof preactHooks.useReducer;
  5. declare const createElement: typeof preact.h;
  6. export { act, useRef, createElement, createContext, serverRender, useCallback, useEffect, useMemo, useState, useContext, useLayoutEffect, useReducer, };
  7. export type VNode = preact.VNode;
  8. export declare const mountElement: (element: any) => {
  9. unmount(): void;
  10. update(newElement: Element): void;
  11. toString(): string;
  12. dom: Element;
  13. };