Skip to content

Commit

Permalink
fixed incorrect generation of the global-modifying module part of the…
Browse files Browse the repository at this point in the history
… package
  • Loading branch information
Oaphi committed Nov 2, 2021
1 parent e7ee17c commit 887670b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions generator/filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const addGlobalModifyingVersion = (
const commonNS = createNamespace(factory, "StackExchangeAPI", [ns]);
return createModuleDeclaration(factory, "global", [commonNS], {
isAmbient: true,
isGlobal: true,
});
};

Expand Down
2 changes: 1 addition & 1 deletion lib/filters.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 887670b

Please sign in to comment.