= T extends T ? keyof T : never;
+export type Exact = P extends Builtin
+ ? P
+ : P & { [K in keyof P]: Exact
} & Record<
+ Exclude>,
+ never
+ >;
+
function longToNumber(long: Long): number {
if (long.gt(Number.MAX_SAFE_INTEGER)) {
throw new globalThis.Error('Value is larger than Number.MAX_SAFE_INTEGER');
diff --git a/examples/web-chat/tsconfig.json b/examples/web-chat/tsconfig.json
index 01588d1cdd..637a5aa4ad 100644
--- a/examples/web-chat/tsconfig.json
+++ b/examples/web-chat/tsconfig.json
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"incremental": true,
- "target": "es2017",
+ "target": "es2020",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,