@fluidframework/core-interfaces 2.0.0-internal.3.0.5 → 2.0.0-internal.3.1.1

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/src/provider.ts CHANGED
@@ -24,13 +24,15 @@
24
24
  *
25
25
  * @internal
26
26
  */
27
- export type FluidObjectProviderKeys<T, TProp extends keyof T = keyof T> =
28
- string extends TProp ? never : number extends TProp? never : // exclude indexers [key:string |number]: any
29
- TProp extends keyof Required<T>[TProp] // TProp is a property of T, and T[TProp]
30
- ? Required<T>[TProp] extends Required<Required<T>[TProp]>[TProp] // T[TProp] is the same type as T[TProp][TProp]
31
- ? TProp
32
- : never
33
- : never;
27
+ export type FluidObjectProviderKeys<T, TProp extends keyof T = keyof T> = string extends TProp
28
+ ? never
29
+ : number extends TProp
30
+ ? never // exclude indexers [key:string |number]: any
31
+ : TProp extends keyof Required<T>[TProp] // TProp is a property of T, and T[TProp]
32
+ ? Required<T>[TProp] extends Required<Required<T>[TProp]>[TProp] // T[TProp] is the same type as T[TProp][TProp]
33
+ ? TProp
34
+ : never
35
+ : never;
34
36
 
35
37
  /**
36
38
  * This utility type take interface(s) that follow the FluidObject pattern, and produces
@@ -64,7 +66,7 @@ export type FluidObjectProviderKeys<T, TProp extends keyof T = keyof T> =
64
66
  *
65
67
  */
66
68
  export type FluidObject<T = unknown> = {
67
- [P in FluidObjectProviderKeys<T>]?: T[P];
69
+ [P in FluidObjectProviderKeys<T>]?: T[P];
68
70
  };
69
71
 
70
72
  /**
@@ -1,7 +1,7 @@
1
1
  {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "./lib",
5
- "module": "esnext"
6
- },
7
- }
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "./lib",
5
+ "module": "esnext",
6
+ },
7
+ }
package/tsconfig.json CHANGED
@@ -1,14 +1,10 @@
1
1
  {
2
- "extends": "@fluidframework/build-common/ts-common-config.json",
3
- "exclude": [
4
- "src/test/**/*"
5
- ],
6
- "compilerOptions": {
7
- "rootDir": "./src",
8
- "outDir": "./dist",
9
- "composite": true,
10
- },
11
- "include": [
12
- "src/**/*"
13
- ]
2
+ "extends": "@fluidframework/build-common/ts-common-config.json",
3
+ "exclude": ["src/test/**/*"],
4
+ "compilerOptions": {
5
+ "rootDir": "./src",
6
+ "outDir": "./dist",
7
+ "composite": true,
8
+ },
9
+ "include": ["src/**/*"],
14
10
  }