Skip to content

Commit d0d57bd

Browse files
committed
fix(telemetry): support exactOptionalPropertyTypes compiler option
1 parent 3fe33ac commit d0d57bd

File tree

2 files changed

+57
-1
lines changed

2 files changed

+57
-1
lines changed

.idx/dev.nix

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# To learn more about how to use Nix to configure your environment
2+
# see: https://firebase.google.com/docs/studio/customize-workspace
3+
{ pkgs, ... }: {
4+
# Which nixpkgs channel to use.
5+
channel = "stable-24.05"; # or "unstable"
6+
7+
# Use https://search.nixos.org/packages to find packages
8+
packages = [
9+
# pkgs.go
10+
# pkgs.python311
11+
# pkgs.python311Packages.pip
12+
# pkgs.nodejs_20
13+
# pkgs.nodePackages.nodemon
14+
];
15+
16+
# Sets environment variables in the workspace
17+
env = {};
18+
idx = {
19+
# Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
20+
extensions = [
21+
# "vscodevim.vim"
22+
];
23+
24+
# Enable previews
25+
previews = {
26+
enable = true;
27+
previews = {
28+
# web = {
29+
# # Example: run "npm run dev" with PORT set to IDX's defined port for previews,
30+
# # and show it in IDX's web preview panel
31+
# command = ["npm" "run" "dev"];
32+
# manager = "web";
33+
# env = {
34+
# # Environment variables to set for your server
35+
# PORT = "$PORT";
36+
# };
37+
# };
38+
};
39+
};
40+
41+
# Workspace lifecycle hooks
42+
workspace = {
43+
# Runs when a workspace is first created
44+
onCreate = {
45+
# Example: install JS dependencies from NPM
46+
# npm-install = "npm install";
47+
};
48+
# Runs when the workspace is (re)started
49+
onStart = {
50+
# Example: start a background task to watch and re-build backend code
51+
# watch-backend = "npm run watch-backend";
52+
};
53+
};
54+
};
55+
}

telemetry/configuration.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ export interface TelemetryMetricConfig {
3232
* @property {Record<TelemetryMetric, TelemetryMetricConfig>} metrics - A record mapping telemetry metrics to their configurations.
3333
*/
3434
export interface TelemetryConfig {
35-
metrics?: Partial<Record<TelemetryMetric, TelemetryMetricConfig>>;
35+
metrics?: Partial<Record<TelemetryMetric, TelemetryMetricConfig>> | undefined;
3636
}
3737

38+
3839
/**
3940
* Manages the overall telemetry configuration, including default and valid attributes.
4041
*

0 commit comments

Comments
 (0)