Skip to content

Error TS2742: The inferred type of 'timing' cannot be named #1

@maxholman

Description

@maxholman

Error TS2742: The inferred type of 'timing' cannot be named without a reference to '@block65/server-timing/dist/src/create.js'. This is likely not portable. A type annotation is necessary.

Need to export TimingContext as follows:

diff --git a/node_modules/@block65/server-timing/dist/src/index.d.ts b/node_modules/@block65/server-timing/dist/src/index.d.ts
index 05047a8..05b0003 100644
--- a/node_modules/@block65/server-timing/dist/src/index.d.ts
+++ b/node_modules/@block65/server-timing/dist/src/index.d.ts
@@ -1,2 +1,2 @@
 export { ServerTiming } from '../lib/server-timing.js';
-export { type AlsStore, createServerTimingContext } from './create.js';
+export { type AlsStore, createServerTimingContext, type TimingContext } from './create.js';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions