Some checks failed
Code scanning / CodeQL (push) Failing after 15s
Zulip production suite / Ubuntu 22.04 production build (push) Failing after 26s
Zulip production suite / Debian 12 production install with custom db name and user (push) Has been skipped
Zulip production suite / Ubuntu 22.04 production install and PostgreSQL upgrade with pgroonga (push) Has been skipped
Zulip production suite / Ubuntu 24.04 production install (push) Has been skipped
Zulip production suite / Ubuntu 26.04 production install (push) Has been skipped
Zulip production suite / Debian 13 production install (push) Has been skipped
Zulip production suite / 7.0 Version Upgrade (push) Has been skipped
Zulip production suite / 8.0 Version Upgrade (push) Has been skipped
Zulip production suite / 6.0 Version Upgrade (push) Has been skipped
Zulip production suite / 10.0 Version Upgrade (push) Has been skipped
Zulip production suite / 9.0 Version Upgrade (push) Has been skipped
Zulip production suite / 12.0 Version Upgrade (push) Has been skipped
Zulip production suite / 11.0 Version Upgrade (push) Has been skipped
GitHub Actions Security Analysis with zizmor / zizmor (push) Failing after 3s
Zulip CI / Debian 12 (Python 3.11, backend + documentation) (push) Failing after 26s
Zulip CI / Ubuntu 22.04 (Python 3.10, backend + frontend) (push) Failing after 3s
Zulip CI / Ubuntu 24.04 (Python 3.12, backend) (push) Failing after 25s
Zulip CI / Ubuntu 26.04 (Python 3.14, backend) (push) Failing after 25s
Zulip CI / Debian 13 (Python 3.13, backend) (push) Failing after 28s
Zulip production suite / Required jobs (push) Has been cancelled
Zulip CI / Required jobs (push) Has been cancelled
API Documentation Update Check / check-feature-level-updated (push) Has been cancelled
API Documentation Update Check / notify-if-api-docs-changed (push) Has been cancelled
58 lines
1.4 KiB
Diff
58 lines
1.4 KiB
Diff
diff --git a/runtime.d.ts b/runtime.d.ts
|
|
index 0d5105eb73794b7ab88a7c30502977d10a836f45..a8e8768addd7c424eb8e82372eb3d955582eb456 100644
|
|
--- a/runtime.d.ts
|
|
+++ b/runtime.d.ts
|
|
@@ -1,5 +1,3 @@
|
|
import Handlebars = require('handlebars')
|
|
|
|
-declare module "handlebars/runtime" {
|
|
-
|
|
-}
|
|
\ No newline at end of file
|
|
+export = Handlebars;
|
|
diff --git a/types/index.d.ts b/types/index.d.ts
|
|
index 3f2f8b792edbd621d06c399ff4c722234f233742..3b3d8cb0d3c9f264b00104c3ea0ba96a2e63d485 100644
|
|
--- a/types/index.d.ts
|
|
+++ b/types/index.d.ts
|
|
@@ -14,7 +14,8 @@
|
|
*/
|
|
// TypeScript Version: 2.3
|
|
|
|
-declare namespace Handlebars {
|
|
+declare global {
|
|
+namespace Handlebars {
|
|
export interface TemplateDelegate<T = any> {
|
|
(context: T, options?: RuntimeOptions): string;
|
|
}
|
|
@@ -243,7 +244,7 @@ interface PrecompileOptions extends CompileOptions {
|
|
destName?: string;
|
|
}
|
|
|
|
-declare namespace hbs {
|
|
+namespace hbs {
|
|
// for backward compatibility of this typing
|
|
type SafeString = Handlebars.SafeString;
|
|
|
|
@@ -264,7 +265,7 @@ interface Logger {
|
|
|
|
type CompilerInfo = [number/* revision */, string /* versions */];
|
|
|
|
-declare namespace hbs {
|
|
+namespace hbs {
|
|
namespace AST {
|
|
interface Node {
|
|
type: string;
|
|
@@ -412,11 +413,6 @@ declare namespace hbs {
|
|
}
|
|
}
|
|
}
|
|
-
|
|
-declare module "handlebars" {
|
|
- export = Handlebars;
|
|
}
|
|
|
|
-declare module "handlebars/runtime" {
|
|
- export = Handlebars;
|
|
-}
|
|
+export = Handlebars;
|