Files
agency/.pnpm-store/v3/files/9f/7f5853ba5d5aeed9619b5659860e9fb6361aba6cf5a0ce1a259ab74b32919bdf9cee549af8c1fa81641879f764cd5a00ea89b099cd34192a92d0b30add51cd
hanzo-agent 5af6960b87 run project
Run: sess_f37640604ae254cb4d11dc6217f7b721
2026-09-30 00:04:56 +00:00

55 lines
1.9 KiB
Plaintext

/**
* These are types for things that are present in the `experimental` builds of React but not yet
* on a stable build.
*
* Once they are promoted to stable they can just be moved to the main index file.
*
* To load the types declared here in an actual project, there are three ways. The easiest one,
* if your `tsconfig.json` already has a `"types"` array in the `"compilerOptions"` section,
* is to add `"react-dom/experimental"` to the `"types"` array.
*
* Alternatively, a specific import syntax can to be used from a typescript file.
* This module does not exist in reality, which is why the {} is important:
*
* ```ts
* import {} from 'react-dom/experimental'
* ```
*
* It is also possible to include it through a triple-slash reference:
*
* ```ts
* /// <reference types="react-dom/experimental" />
* ```
*
* Either the import or the reference only needs to appear once, anywhere in the project.
*/
// See https://github.com/facebook/react/blob/main/packages/react-dom/index.experimental.js to see how the exports are declared,
// but confirm with published source code (e.g. https://unpkg.com/react-dom@experimental) that these exports end up in the published code
import React = require("react");
import ReactDOM = require("./canary");
export {};
declare const UNDEFINED_VOID_ONLY: unique symbol;
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
declare module "." {
}
declare module "react" {
// eslint-disable-next-line @typescript-eslint/no-empty-interface
interface GestureProvider extends AnimationTimeline {}
}
declare module "./client" {
type TransitionIndicatorCleanup = () => VoidOrUndefinedOnly;
interface RootOptions {
onDefaultTransitionIndicator?: (() => void | TransitionIndicatorCleanup) | undefined;
}
interface HydrationOptions {
onDefaultTransitionIndicator?: (() => void | TransitionIndicatorCleanup) | undefined;
}
}