From baab41f0cbbdb7899277bab21f50fb9ebec7be83 Mon Sep 17 00:00:00 2001 From: STC Date: Thu, 2 Apr 2026 22:41:06 +0900 Subject: [PATCH] Add typing for mod/config --- examples/manifest_typings.json | 3 +++ typings/mod/config.d.ts | 24 ++++++++++++++++++++++++ typings/mod/index.d.ts | 1 + 3 files changed, 28 insertions(+) create mode 100644 typings/mod/config.d.ts create mode 100644 typings/mod/index.d.ts diff --git a/examples/manifest_typings.json b/examples/manifest_typings.json index 02c6a078ee..7fb8990c89 100644 --- a/examples/manifest_typings.json +++ b/examples/manifest_typings.json @@ -16,6 +16,9 @@ "mc/*": [ "$(TYPINGS)/mc/*" ], + "mod/*": [ + "$(TYPINGS)/mod/*" + ], "pins/*": [ "$(TYPINGS)/pins/*" ], diff --git a/typings/mod/config.d.ts b/typings/mod/config.d.ts new file mode 100644 index 0000000000..df6f04fc60 --- /dev/null +++ b/typings/mod/config.d.ts @@ -0,0 +1,24 @@ +/* +* Copyright (c) 2026 Satoshi Tanaka +* +* This file is part of the Moddable SDK Tools. +* +* The Moddable SDK Tools is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* The Moddable SDK Tools is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with the Moddable SDK Tools. If not, see . +* +*/ + +declare module "mod/config" { + var Config: {file: {root: string}} & Record; + export {Config as default}; +} diff --git a/typings/mod/index.d.ts b/typings/mod/index.d.ts new file mode 100644 index 0000000000..f87af3c192 --- /dev/null +++ b/typings/mod/index.d.ts @@ -0,0 +1 @@ +// Blank