version-bridge: export createVersionedContext
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -3,6 +3,15 @@
|
||||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
||||
|
||||
```ts
|
||||
import { Context } from 'react';
|
||||
|
||||
// @public
|
||||
export function createVersionedContext<
|
||||
Versions extends {
|
||||
[version in number]: any;
|
||||
},
|
||||
>(key: string): Context<VersionedValue<Versions> | undefined>;
|
||||
|
||||
// @public
|
||||
export function createVersionedContextForTesting(key: string): {
|
||||
set(versions: { [x: number]: unknown }): void;
|
||||
|
||||
@@ -18,6 +18,7 @@ export { getGlobalSingleton, getOrCreateGlobalSingleton } from './globalObject';
|
||||
export {
|
||||
createVersionedContextForTesting,
|
||||
useVersionedContext,
|
||||
createVersionedContext,
|
||||
} from './VersionedContext';
|
||||
export { createVersionedValueMap } from './VersionedValue';
|
||||
export type { VersionedValue } from './VersionedValue';
|
||||
|
||||
Reference in New Issue
Block a user