@tamagui/create-context 1.0.1-rc.1.2 → 1.0.1-rc.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/create-context",
3
- "version": "1.0.1-rc.1.2",
3
+ "version": "1.0.1-rc.1.4",
4
4
  "sideEffects": false,
5
5
  "source": "src/index.ts",
6
6
  "types": "./types/index.d.ts",
@@ -22,7 +22,7 @@
22
22
  "react": ">=18"
23
23
  },
24
24
  "devDependencies": {
25
- "@tamagui/build": "^1.0.1-rc.1.2",
25
+ "@tamagui/build": "^1.0.1-rc.1.4",
26
26
  "react": ">=18"
27
27
  },
28
28
  "publishConfig": {
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- export declare type ScopedProps<P, K extends string> = P & {
2
+ export type ScopedProps<P, K extends string> = P & {
3
3
  [Key in `__scope${K}`]?: Scope;
4
4
  };
5
5
  export declare function createContext<ContextValueType extends object | null>(rootComponentName: string, defaultContext?: ContextValueType): readonly [{
@@ -8,10 +8,10 @@ export declare function createContext<ContextValueType extends object | null>(ro
8
8
  }): JSX.Element;
9
9
  displayName: string;
10
10
  }, (consumerName: string) => ContextValueType];
11
- declare type ScopeHook = (scope: Scope) => {
11
+ type ScopeHook = (scope: Scope) => {
12
12
  [__scopeProp: string]: Scope;
13
13
  };
14
- export declare type Scope<C = any> = {
14
+ export type Scope<C = any> = {
15
15
  [scopeName: string]: React.Context<C>[];
16
16
  } | undefined;
17
17
  export interface CreateScope {