version-bridge: export createVersionedContext

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-09-10 17:56:34 +02:00
parent 73a752ff4f
commit ac95cf2e03
2 changed files with 10 additions and 0 deletions
+9
View File
@@ -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;
+1
View File
@@ -18,6 +18,7 @@ export { getGlobalSingleton, getOrCreateGlobalSingleton } from './globalObject';
export {
createVersionedContextForTesting,
useVersionedContext,
createVersionedContext,
} from './VersionedContext';
export { createVersionedValueMap } from './VersionedValue';
export type { VersionedValue } from './VersionedValue';