@defold-typescript/library-types 0.20.8 → 0.21.1

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.
@@ -0,0 +1,28 @@
1
+ {
2
+ "targets": [
3
+ {
4
+ "repo": "https://github.com/Insality/druid",
5
+ "ref": "1.2.5",
6
+ "license": "MIT",
7
+ "sourceGlobs": ["druid/**/*.lua"],
8
+ "moduleId": "druid.druid",
9
+ "namespace": "druid",
10
+ "typeRenames": {
11
+ "vector": "Vector",
12
+ "vector3": "Vector3",
13
+ "vector4": "Vector4"
14
+ },
15
+ "ignore": ["**/test/**", "**/example/**", "**/example_*/**"]
16
+ },
17
+ {
18
+ "repo": "https://github.com/Insality/decore",
19
+ "ref": "4",
20
+ "license": "MIT",
21
+ "sourceGlobs": ["decore/**/*.lua"],
22
+ "moduleId": "decore.decore",
23
+ "namespace": "decore",
24
+ "typeRenames": {},
25
+ "ignore": ["**/test/**", "**/example/**"]
26
+ }
27
+ ]
28
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defold-typescript/library-types",
3
- "version": "0.20.8",
3
+ "version": "0.21.1",
4
4
  "description": "Vendored TypeScript types for popular Defold Lua libraries, core-type-renamed against @defold-typescript/types.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -161,6 +161,7 @@
161
161
  "scripts",
162
162
  "library-targets.json",
163
163
  "library-classification.json",
164
+ "luals-targets.json",
164
165
  "NOTICE",
165
166
  "!scripts/**/*.test.ts"
166
167
  ],
@@ -170,10 +171,12 @@
170
171
  "check": "bun scripts/sync-library-types.ts --check",
171
172
  "classify": "bun scripts/sync-library-types.ts --classify",
172
173
  "luals:fetch": "bun scripts/sync-luals-types.ts --fetch",
173
- "luals:fidelity": "bun scripts/sync-luals-types.ts --fidelity"
174
+ "luals:fidelity": "bun scripts/sync-luals-types.ts --fidelity",
175
+ "luals:emit": "bun scripts/sync-luals-types.ts --emit",
176
+ "luals:api-doc": "bun scripts/sync-luals-types.ts --api-doc"
174
177
  },
175
178
  "dependencies": {
176
- "@defold-typescript/types": "0.20.8"
179
+ "@defold-typescript/types": "0.21.1"
177
180
  },
178
181
  "devDependencies": {
179
182
  "@typescript-to-lua/language-extensions": "1.19.0",
@@ -0,0 +1,22 @@
1
+ // Bun Snapshot v1, https://bun.sh/docs/test/snapshots
2
+
3
+ exports[`emits a declare module block with an interface, its field and method, and a module function 1`] = `
4
+ "/** @noResolution */
5
+ declare module 'demo.demo' {
6
+ /**
7
+ * A widget.
8
+ */
9
+ interface widget {
10
+ count: number;
11
+ /**
12
+ * Resize the widget.
13
+ */
14
+ resize(size: number): boolean;
15
+ }
16
+ /**
17
+ * Create a widget.
18
+ */
19
+ export function create(this: void): widget;
20
+ }
21
+ "
22
+ `;