declare module '@segment/facade' {
interface Options {
clone?: boolean;
traverse?: boolean;
}
export class Facade<T = { [key: string]: any }> {
constructor(object: { [key: string]: any }, options?: Options);
...
}
...
}
export interface Options {
clone?: boolean;
traverse?: boolean;
}
General info
@segment/facade3.4.10Current state
index.d.ts.declare module ...:Issue
@segment/facademodule, which results in an error:"Facade" is not exported by "node_modules/@segment/facade/index.d.ts", imported by "node_modules/@segment/analytics-next/dist/types/lib/to-facade.d.ts".@segment/...module that is using augmentation in type definitions.Proposition
declare module...as it's not really needed as the types can be easily imported by using the module's name@segment/facadedeclared inpackage.json.exportmodifier to theOptionsinterface declaration, so that is can be consumed from outside: