diff --git a/generator/filters.ts b/generator/filters.ts index 2634485..d3fe506 100644 --- a/generator/filters.ts +++ b/generator/filters.ts @@ -18,6 +18,7 @@ const addGlobalModifyingVersion = ( const commonNS = createNamespace(factory, "StackExchangeAPI", [ns]); return createModuleDeclaration(factory, "global", [commonNS], { isAmbient: true, + isGlobal: true, }); }; diff --git a/lib/filters.d.ts b/lib/filters.d.ts index 3fef2af..ef585d6 100644 --- a/lib/filters.d.ts +++ b/lib/filters.d.ts @@ -2,7 +2,7 @@ export namespace Filters { export type BuiltIn = "default" | "withbody" | "default" | "none" | "total"; } -declare module global { +declare global { namespace StackExchangeAPI { namespace Filters { type BuiltIn = "default" | "withbody" | "default" | "none" | "total";