@defold-typescript/types 0.11.3 → 0.11.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/regen.ts +4 -0
- package/src/engine-globals.d.ts +4 -0
package/package.json
CHANGED
package/scripts/regen.ts
CHANGED
|
@@ -148,6 +148,10 @@ export interface MessagesManifestEntry {
|
|
|
148
148
|
readonly outFile: string;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
+
// Unlike MODULE_MANIFEST, this surface is hand-maintained: Defold ships no
|
|
152
|
+
// machine-readable export for built-in message ids, so refresh fixtures/
|
|
153
|
+
// messages_doc.json by hand from the Defold API reference. The
|
|
154
|
+
// message-payload-drift test guards the payload shapes against drift.
|
|
151
155
|
export const MESSAGES_MANIFEST: MessagesManifestEntry = {
|
|
152
156
|
doc: messagesDoc,
|
|
153
157
|
outFile: "builtin-messages.d.ts",
|
package/src/engine-globals.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/** @noSelfInFile */
|
|
2
2
|
import type * as Core from "./core-types";
|
|
3
3
|
|
|
4
|
+
// Hand-maintained surface: Defold ships no machine-readable export for the
|
|
5
|
+
// prefixless globals, so add or remove entries here from the Defold API
|
|
6
|
+
// reference and mirror the change in fixtures/globals_doc.json — the
|
|
7
|
+
// engine-globals test fails if the two fall out of sync.
|
|
4
8
|
declare global {
|
|
5
9
|
type Hash = Core.Hash;
|
|
6
10
|
function hash(s: string): Core.Hash;
|