diff --git a/.changeset/selfish-candles-call.md b/.changeset/selfish-candles-call.md new file mode 100644 index 00000000..3b4c71ab --- /dev/null +++ b/.changeset/selfish-candles-call.md @@ -0,0 +1,5 @@ +--- +"@khanacademy/wonder-stuff-server-google": patch +--- + +Fix ITraceSession interface diff --git a/packages/wonder-stuff-server-google/src/trace-impl.ts b/packages/wonder-stuff-server-google/src/trace-impl.ts index dad4cecc..90b2d6f4 100644 --- a/packages/wonder-stuff-server-google/src/trace-impl.ts +++ b/packages/wonder-stuff-server-google/src/trace-impl.ts @@ -146,7 +146,6 @@ export const traceImpl = ( }; return { - // @ts-expect-error [FEI-5011] - TS2322 - Type 'string' is not assignable to type '() => string'. get action() { return action; }, diff --git a/packages/wonder-stuff-server-google/src/types.ts b/packages/wonder-stuff-server-google/src/types.ts index 632518ab..cacb2cf1 100644 --- a/packages/wonder-stuff-server-google/src/types.ts +++ b/packages/wonder-stuff-server-google/src/types.ts @@ -114,7 +114,7 @@ export interface ITraceSession { /** * The name of the action being traced as provided when it was started. */ - action(): string; + get action(): string; /** * Add a label to the trace session. *