Skip to content

Commit 8a7107b

Browse files
authored
Enable exactOptionalPropertyTypes for FF repo (#21354)
Minimum file changes needed to enable exactOptionalPropertyTypes for FF repo [AB#8109](https://dev.azure.com/fluidframework/235294da-091d-4c29-84fc-cdfc3d90890b/_workitems/edit/8109)
1 parent 5af361c commit 8a7107b

File tree

160 files changed

+160
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+160
-0
lines changed

azure/packages/test/scenario-runner/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
"outDir": "./lib",
88
"types": ["node"],
99
"noUncheckedIndexedAccess": false,
10+
"exactOptionalPropertyTypes": false,
1011
},
1112
}

build-tools/packages/build-cli/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
"noUnusedLocals": false,
1010
"target": "ES2022",
1111
"noUncheckedIndexedAccess": false,
12+
"exactOptionalPropertyTypes": false,
1213
},
1314
}

common/build/build-common/tsconfig.base.json

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"strict": true,
1616
"target": "ES2022",
1717
"types": [],
18+
"exactOptionalPropertyTypes": true,
1819
"noUncheckedIndexedAccess": true,
1920
},
2021
}

examples/apps/attributable-map/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": {
44
"outDir": "./lib",
55
"types": [],
6+
"exactOptionalPropertyTypes": false,
67
},
78
"include": ["src/**/*"],
89
}

examples/apps/collaborative-textarea/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"react-dom",
1313
],
1414
"noUncheckedIndexedAccess": false,
15+
"exactOptionalPropertyTypes": false,
1516
},
1617
"include": ["src/**/*"],
1718
}

examples/apps/contact-collection/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"outDir": "./lib",
55
"types": ["jest", "puppeteer", "jest-environment-puppeteer", "expect-puppeteer"],
66
"noUncheckedIndexedAccess": false,
7+
"exactOptionalPropertyTypes": false,
78
},
89
"include": ["src/**/*", "tests/**/*"],
910
}

examples/apps/data-object-grid/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"react",
1212
"react-dom",
1313
],
14+
"exactOptionalPropertyTypes": false,
1415
},
1516
"include": ["src/**/*"],
1617
}

examples/apps/presence-tracker/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": {
44
"outDir": "./lib",
55
"types": ["jest", "puppeteer", "jest-environment-puppeteer", "expect-puppeteer"],
6+
"exactOptionalPropertyTypes": false,
67
},
78
"include": ["src/**/*", "tests/**/*"],
89
}

examples/apps/task-selection/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": {
44
"outDir": "./lib",
55
"types": ["jest", "puppeteer", "jest-environment-puppeteer", "expect-puppeteer"],
6+
"exactOptionalPropertyTypes": false,
67
},
78
"include": ["src/**/*", "tests/**/*"],
89
}

examples/apps/tree-comparison/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"outDir": "./lib",
55
"types": ["jest", "puppeteer", "jest-environment-puppeteer", "expect-puppeteer", "react"],
66
"noUncheckedIndexedAccess": false,
7+
"exactOptionalPropertyTypes": false,
78
},
89
"include": ["src/**/*", "tests/**/*"],
910
}

examples/benchmarks/bubblebench/baseline/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"jest-environment-puppeteer",
1313
"expect-puppeteer",
1414
],
15+
"exactOptionalPropertyTypes": false,
1516
},
1617
"include": ["src/**/*"],
1718
}

examples/benchmarks/bubblebench/experimental-tree/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"expect-puppeteer",
1414
],
1515
"noUncheckedIndexedAccess": false,
16+
"exactOptionalPropertyTypes": false,
1617
},
1718
"include": ["src/**/*"],
1819
}

examples/benchmarks/bubblebench/ot/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"expect-puppeteer",
1414
],
1515
"noUncheckedIndexedAccess": false,
16+
"exactOptionalPropertyTypes": false,
1617
},
1718
"include": ["src/**/*"],
1819
}

examples/benchmarks/bubblebench/shared-tree-flex-tree/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"jest-environment-puppeteer",
1717
"expect-puppeteer",
1818
],
19+
"exactOptionalPropertyTypes": false,
1920
},
2021
"include": ["src/**/*"],
2122
}

examples/benchmarks/bubblebench/shared-tree/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"jest-environment-puppeteer",
1313
"expect-puppeteer",
1414
],
15+
"exactOptionalPropertyTypes": false,
1516
},
1617
"include": ["src/**/*"],
1718
}

examples/benchmarks/odspsnapshotfetch-perftestapp/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": {
44
"rootDir": "./src",
55
"outDir": "./lib",
6+
"exactOptionalPropertyTypes": false,
67
},
78
"include": ["src/**/*"],
89
}

examples/benchmarks/tablebench/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"outDir": "./lib",
77
"noImplicitAny": true,
88
"noImplicitOverride": true,
9+
"exactOptionalPropertyTypes": false,
910
},
1011
"include": ["src/**/*"],
1112
}

examples/client-logger/app-insights-logger/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"rootDir": "src",
55
"outDir": "./lib",
66
"types": ["jest"],
7+
"exactOptionalPropertyTypes": false,
78
},
89
"include": ["src/**/*"],
910
}

examples/data-objects/canvas/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"react-dom",
1212
],
1313
"noUncheckedIndexedAccess": false,
14+
"exactOptionalPropertyTypes": false,
1415
},
1516
"include": ["src/**/*"],
1617
}

examples/data-objects/clicker/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"react",
1212
"react-dom",
1313
],
14+
"exactOptionalPropertyTypes": false,
1415
},
1516
"include": ["src/**/*"],
1617
}

examples/data-objects/codemirror/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"outDir": "./lib",
66
"types": ["react"],
77
"noUncheckedIndexedAccess": false,
8+
"exactOptionalPropertyTypes": false,
89
},
910
"include": ["src/**/*"],
1011
}

examples/data-objects/diceroller/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"jest-environment-puppeteer",
1111
"expect-puppeteer",
1212
],
13+
"exactOptionalPropertyTypes": false,
1314
},
1415
"include": ["src/**/*"],
1516
}

examples/data-objects/inventory-app/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"jest-environment-puppeteer",
1313
"expect-puppeteer",
1414
],
15+
"exactOptionalPropertyTypes": false,
1516
},
1617
"include": ["src/**/*"],
1718
}

examples/data-objects/monaco/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"outDir": "./lib",
55
"types": ["react"],
66
"noUncheckedIndexedAccess": false,
7+
"exactOptionalPropertyTypes": false,
78
},
89
"include": ["src/**/*"],
910
}

examples/data-objects/multiview/constellation-model/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": {
44
"outDir": "./lib",
55
"rootDir": "./src",
6+
"exactOptionalPropertyTypes": false,
67
},
78
"include": ["src/**/*"],
89
}

examples/data-objects/multiview/constellation-view/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"outDir": "./lib",
55
"rootDir": "./src",
66
"types": ["react"],
7+
"exactOptionalPropertyTypes": false,
78
},
89
"include": ["src/**/*"],
910
}

examples/data-objects/multiview/container/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"jest-environment-puppeteer",
1111
"expect-puppeteer",
1212
],
13+
"exactOptionalPropertyTypes": false,
1314
},
1415
"include": ["src/**/*"],
1516
}

examples/data-objects/multiview/coordinate-model/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": {
44
"outDir": "./lib",
55
"rootDir": "./src",
6+
"exactOptionalPropertyTypes": false,
67
},
78
"include": ["src/**/*"],
89
}

examples/data-objects/multiview/interface/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": {
44
"rootDir": "./src",
55
"outDir": "./lib",
6+
"exactOptionalPropertyTypes": false,
67
},
78
"include": ["src/**/*"],
89
}

examples/data-objects/multiview/plot-coordinate-view/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"outDir": "./lib",
55
"rootDir": "./src",
66
"types": ["react"],
7+
"exactOptionalPropertyTypes": false,
78
},
89
"include": ["src/**/*"],
910
}

examples/data-objects/multiview/slider-coordinate-view/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"outDir": "./lib",
55
"rootDir": "./src",
66
"types": ["react"],
7+
"exactOptionalPropertyTypes": false,
78
},
89
"include": ["src/**/*"],
910
}

examples/data-objects/multiview/triangle-view/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"outDir": "./lib",
55
"rootDir": "./src", // "rootDir" is a TypeScript compiler option that specifies the root directory of input files
66
"types": ["react"],
7+
"exactOptionalPropertyTypes": false,
78
},
89
"include": ["src/**/*"],
910
}

examples/data-objects/prosemirror/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"outDir": "./lib",
66
"types": ["react"],
77
"noUncheckedIndexedAccess": false,
8+
"exactOptionalPropertyTypes": false,
89
},
910
"include": ["src/**/*"],
1011
}

examples/data-objects/smde/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": {
44
"outDir": "./lib",
55
"types": ["react"],
6+
"exactOptionalPropertyTypes": false,
67
},
78
"include": ["src/**/*"],
89
}

examples/data-objects/table-document/src/test/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"rootDir": "./",
55
"outDir": "../../lib/test",
66
"types": ["mocha", "node"],
7+
"exactOptionalPropertyTypes": false,
78
},
89
"include": ["./**/*"],
910
"references": [

examples/data-objects/table-document/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"strictNullChecks": false,
66
"rootDir": "./src",
77
"outDir": "./lib",
8+
"exactOptionalPropertyTypes": false,
89
},
910
"include": ["src/**/*"],
1011
}

examples/data-objects/todo/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"expect-puppeteer",
1212
],
1313
"noUncheckedIndexedAccess": false,
14+
"exactOptionalPropertyTypes": false,
1415
},
1516
"include": ["src/**/*"],
1617
}

examples/data-objects/webflow/src/test/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"outDir": "../../lib/test",
66
"types": ["mocha", "node"],
77
"noUncheckedIndexedAccess": false,
8+
"exactOptionalPropertyTypes": false,
89
},
910
"include": ["./**/*"],
1011
"references": [

examples/data-objects/webflow/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"outDir": "./lib",
88
"types": ["react", "react-dom"],
99
"resolveJsonModule": true,
10+
"exactOptionalPropertyTypes": false,
1011
},
1112
"include": ["src/**/*"],
1213
}

examples/external-data/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"outDir": "./lib",
55
"types": ["jest", "puppeteer", "jest-environment-puppeteer", "expect-puppeteer", "react"],
66
"noUncheckedIndexedAccess": false,
7+
"exactOptionalPropertyTypes": false,
78
},
89
"include": ["src/**/*", "tests/**/*"],
910
"lib": ["dom"],

examples/service-clients/azure-client/external-controller/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"compilerOptions": {
55
"outDir": "./lib",
66
"types": ["jest", "puppeteer", "jest-environment-puppeteer", "expect-puppeteer"],
7+
"exactOptionalPropertyTypes": false,
78
},
89
"include": ["src/**/*", "tests/**/*"],
910
}

examples/service-clients/odsp-client/shared-tree-demo/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": {
44
"outDir": "./lib",
55
"types": ["react", "react-dom"],
6+
"exactOptionalPropertyTypes": false,
67
},
78
"include": ["src/**/*", "tests/**/*"],
89
}

examples/utils/bundle-size-tests/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "../../../common/build/build-common/tsconfig.node16.json",
33
"compilerOptions": {
44
"outDir": "./lib",
5+
"exactOptionalPropertyTypes": false,
56
},
67
"include": ["src/**/*"],
78
}

examples/utils/example-utils/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"compilerOptions": {
55
"rootDir": "./src",
66
"outDir": "./lib",
7+
"exactOptionalPropertyTypes": false,
78
},
89
}

examples/utils/webpack-fluid-loader/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
"outDir": "./lib",
88
"types": ["node"],
99
"noUncheckedIndexedAccess": false,
10+
"exactOptionalPropertyTypes": false,
1011
},
1112
}

examples/version-migration/live-schema-upgrade/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": {
44
"outDir": "./lib",
55
"types": ["jest", "puppeteer", "jest-environment-puppeteer", "expect-puppeteer"],
6+
"exactOptionalPropertyTypes": false,
67
},
78
"include": ["src/**/*", "tests/**/*"],
89
}

examples/version-migration/same-container/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"outDir": "./lib",
55
"types": ["jest", "puppeteer", "jest-environment-puppeteer", "expect-puppeteer", "react"],
66
"noUncheckedIndexedAccess": false,
7+
"exactOptionalPropertyTypes": false,
78
},
89
"include": ["src/**/*", "tests/**/*"],
910
}

examples/version-migration/schema-upgrade/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"outDir": "./lib",
55
"types": ["jest", "puppeteer", "jest-environment-puppeteer", "expect-puppeteer", "react"],
66
"noUncheckedIndexedAccess": false,
7+
"exactOptionalPropertyTypes": false,
78
},
89
"include": ["src/**/*", "tests/**/*"],
910
}

examples/version-migration/tree-shim/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"outDir": "./lib",
55
"types": ["jest", "puppeteer", "jest-environment-puppeteer", "expect-puppeteer", "react"],
66
"noUncheckedIndexedAccess": false,
7+
"exactOptionalPropertyTypes": false,
78
},
89
"include": ["src/**/*", "tests/**/*"],
910
}

examples/view-integration/container-views/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"jest-environment-puppeteer",
1111
"expect-puppeteer",
1212
],
13+
"exactOptionalPropertyTypes": false,
1314
},
1415
"include": ["src/**/*"],
1516
}

0 commit comments

Comments
 (0)