@touchtech/web-tenant-id-provider 0.0.3 → 0.0.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +3 -2
  2. package/package.json +3 -2
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ declare type Props = {
3
3
  children: React.ReactNode;
4
4
  onTenantIdChanged(tenantId: string | null): void;
5
5
  };
6
- export declare const TenantIdContext: any;
7
- export declare function TenantIdProvider({ children, onTenantIdChanged }: Props): any;
6
+ declare type ProviderValue = [string | null, (tenantId: string | null) => void];
7
+ export declare const TenantIdContext: React.Context<ProviderValue>;
8
+ export declare function TenantIdProvider({ children, onTenantIdChanged }: Props): JSX.Element;
8
9
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@touchtech/web-tenant-id-provider",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Template repo for new node.js library/package",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -62,6 +62,7 @@
62
62
  "eslint-plugin-prettier": "^4.0.0",
63
63
  "eslint-plugin-react": "^7.25.1",
64
64
  "eslint-plugin-react-hooks": "^4.2.0",
65
- "webpack-cli": "^4.9.1"
65
+ "webpack-cli": "^4.9.1",
66
+ "@types/react": "^17.0.2"
66
67
  }
67
68
  }