diff --git a/.github/workflows/governance.yml b/.github/workflows/governance.yml index 995cd7d53..b8aa88bfa 100644 --- a/.github/workflows/governance.yml +++ b/.github/workflows/governance.yml @@ -27,4 +27,4 @@ permissions: contents: read jobs: governance: - uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@81dbf2dd854b1444fd6236fa2352474383b2c2b9 \ No newline at end of file + uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@81dbf2dd854b1444fd6236fa2352474383b2c2b9 diff --git a/.github/workflows/hypatia-scan.yml b/.github/workflows/hypatia-scan.yml index 3ba975755..cc876771a 100644 --- a/.github/workflows/hypatia-scan.yml +++ b/.github/workflows/hypatia-scan.yml @@ -22,4 +22,4 @@ permissions: jobs: hypatia: uses: hyperpolymath/standards/.github/workflows/hypatia-scan-reusable.yml@81dbf2dd854b1444fd6236fa2352474383b2c2b9 - secrets: inherit \ No newline at end of file + secrets: inherit diff --git a/.github/workflows/secret-scanner.yml b/.github/workflows/secret-scanner.yml index f648085d7..1c7ebb494 100644 --- a/.github/workflows/secret-scanner.yml +++ b/.github/workflows/secret-scanner.yml @@ -14,4 +14,4 @@ jobs: permissions: contents: read uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@c65436ee3351cd6b0fa14b142938b195efc77586 - secrets: inherit \ No newline at end of file + secrets: inherit diff --git a/affinescript-ecosystem/affinescript-deno-test/cli.ts b/affinescript-ecosystem/affinescript-deno-test/cli.affine similarity index 89% rename from affinescript-ecosystem/affinescript-deno-test/cli.ts rename to affinescript-ecosystem/affinescript-deno-test/cli.affine index 4f5ef8309..ed5f7802e 100644 --- a/affinescript-ecosystem/affinescript-deno-test/cli.ts +++ b/affinescript-ecosystem/affinescript-deno-test/cli.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module cli; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) // // affinescript-deno-test: CLI entry @@ -52,3 +60,5 @@ if (import.meta.main) { } } } + +==================================== */ diff --git a/affinescript-ecosystem/affinescript-deno-test/deno.json b/affinescript-ecosystem/affinescript-deno-test/deno.json deleted file mode 100644 index 65597ab81..000000000 --- a/affinescript-ecosystem/affinescript-deno-test/deno.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "//": "SPDX-License-Identifier: MPL-2.0", - "name": "@hyperpolymath/affinescript-deno-test", - "version": "0.2.0", - "exports": { - ".": "./mod.ts", - "./cli": "./cli.ts" - }, - "license": "PMPL-1.0-or-later", - "imports": { - "@hyperpolymath/affine-js": "../../nextgen-languages/affinescript/packages/affine-js/mod.js" - }, - "tasks": { - "smoke:compile": "deno run --allow-read --allow-run --allow-env cli.ts example", - "smoke:test": "deno test --allow-read --allow-run --allow-env example/smoke_driver.ts", - "fmt": "deno fmt", - "lint": "deno lint" - } -} diff --git a/affinescript-ecosystem/affinescript-deno-test/example/smoke_driver.ts b/affinescript-ecosystem/affinescript-deno-test/example/smoke_driver.affine similarity index 67% rename from affinescript-ecosystem/affinescript-deno-test/example/smoke_driver.ts rename to affinescript-ecosystem/affinescript-deno-test/example/smoke_driver.affine index 8298de25c..04be5c0ca 100644 --- a/affinescript-ecosystem/affinescript-deno-test/example/smoke_driver.ts +++ b/affinescript-ecosystem/affinescript-deno-test/example/smoke_driver.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module smoke_driver; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) // // affinescript-deno-test: smoke test driver @@ -12,3 +20,5 @@ import { runAll } from "../mod.ts"; await runAll(new URL("./", import.meta.url).pathname); + +==================================== */ diff --git a/affinescript-ecosystem/affinescript-deno-test/lib/compile.ts b/affinescript-ecosystem/affinescript-deno-test/lib/compile.affine similarity index 89% rename from affinescript-ecosystem/affinescript-deno-test/lib/compile.ts rename to affinescript-ecosystem/affinescript-deno-test/lib/compile.affine index f8a3ebc05..5d580df65 100644 --- a/affinescript-ecosystem/affinescript-deno-test/lib/compile.ts +++ b/affinescript-ecosystem/affinescript-deno-test/lib/compile.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module compile; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) // // affinescript-deno-test: compile.ts @@ -55,3 +63,5 @@ export async function compileToWasm(sourcePath: string): Promise { return wasmPath; } + +==================================== */ diff --git a/affinescript-ecosystem/affinescript-deno-test/lib/discover.ts b/affinescript-ecosystem/affinescript-deno-test/lib/discover.affine similarity index 82% rename from affinescript-ecosystem/affinescript-deno-test/lib/discover.ts rename to affinescript-ecosystem/affinescript-deno-test/lib/discover.affine index d9bf5ab8f..400254228 100644 --- a/affinescript-ecosystem/affinescript-deno-test/lib/discover.ts +++ b/affinescript-ecosystem/affinescript-deno-test/lib/discover.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module discover; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) // // affinescript-deno-test: discover.ts @@ -29,3 +37,5 @@ export async function discoverTestFiles( matches.sort(); return matches; } + +==================================== */ diff --git a/affinescript-ecosystem/affinescript-deno-test/lib/runner.ts b/affinescript-ecosystem/affinescript-deno-test/lib/runner.affine similarity index 96% rename from affinescript-ecosystem/affinescript-deno-test/lib/runner.ts rename to affinescript-ecosystem/affinescript-deno-test/lib/runner.affine index 217427e73..e5d035eaa 100644 --- a/affinescript-ecosystem/affinescript-deno-test/lib/runner.ts +++ b/affinescript-ecosystem/affinescript-deno-test/lib/runner.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module runner; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) // // affinescript-deno-test: runner.ts @@ -168,3 +176,5 @@ async function registerTestsWithWasi( } return testExports.length; } + +==================================== */ diff --git a/affinescript-ecosystem/affinescript-deno-test/mod.ts b/affinescript-ecosystem/affinescript-deno-test/mod.affine similarity index 88% rename from affinescript-ecosystem/affinescript-deno-test/mod.ts rename to affinescript-ecosystem/affinescript-deno-test/mod.affine index eb6bae8d0..a27b438bb 100644 --- a/affinescript-ecosystem/affinescript-deno-test/mod.ts +++ b/affinescript-ecosystem/affinescript-deno-test/mod.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module mod; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) // // affinescript-deno-test: mod.ts (public API) @@ -46,3 +54,5 @@ export async function runAll(root: string): Promise { } return total; } + +==================================== */ diff --git a/affinescript-ecosystem/rattlescript/affinescript/editors/vscode/src/extension.ts b/affinescript-ecosystem/rattlescript/affinescript/editors/vscode/src/extension.affine similarity index 95% rename from affinescript-ecosystem/rattlescript/affinescript/editors/vscode/src/extension.ts rename to affinescript-ecosystem/rattlescript/affinescript/editors/vscode/src/extension.affine index 816c2bd06..a36286d04 100644 --- a/affinescript-ecosystem/rattlescript/affinescript/editors/vscode/src/extension.ts +++ b/affinescript-ecosystem/rattlescript/affinescript/editors/vscode/src/extension.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module extension; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === // SPDX-License-Identifier: MIT OR AGPL-3.0-or-later // AffineScript VSCode Extension @@ -148,3 +156,5 @@ async function formatCurrentFile() { vscode.window.showErrorMessage(`Formatting failed: ${error.message}`); } } + +==================================== */ diff --git a/affinescript-ecosystem/rattlescript/affinescript/editors/vscode/tsconfig.json b/affinescript-ecosystem/rattlescript/affinescript/editors/vscode/tsconfig.json deleted file mode 100644 index 048ba12ed..000000000 --- a/affinescript-ecosystem/rattlescript/affinescript/editors/vscode/tsconfig.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "target": "ES2020", - "outDir": "out", - "lib": ["ES2020"], - "sourceMap": true, - "rootDir": "src", - "strict": true, - "esModuleInterop": true, - "skipLibCheck": true, - "forceConsistentCasingInFileNames": true, - "resolveJsonModule": true - }, - "include": ["src/**/*"], - "exclude": ["node_modules", ".vscode-test"] -} diff --git a/affinescript-ecosystem/rattlescript/affinescript/packages/affine-js/deno.json b/affinescript-ecosystem/rattlescript/affinescript/packages/affine-js/deno.json deleted file mode 100644 index f5c94375f..000000000 --- a/affinescript-ecosystem/rattlescript/affinescript/packages/affine-js/deno.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "@hyperpolymath/affine-js", - "version": "0.1.0", - "exports": { - ".": "./mod.js", - "./marshal": "./marshal.js", - "./runtime": "./runtime.js" - }, - "license": "PMPL-1.0-or-later" -} diff --git a/affinescript-ecosystem/rattlescript/affinescript/packages/affine-js/types.d.ts b/affinescript-ecosystem/rattlescript/affinescript/packages/affine-js/types.d.affine similarity index 96% rename from affinescript-ecosystem/rattlescript/affinescript/packages/affine-js/types.d.ts rename to affinescript-ecosystem/rattlescript/affinescript/packages/affine-js/types.d.affine index 7d5c3e46c..b5b3da694 100644 --- a/affinescript-ecosystem/rattlescript/affinescript/packages/affine-js/types.d.ts +++ b/affinescript-ecosystem/rattlescript/affinescript/packages/affine-js/types.d.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module types.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) // // affine-js: TypeScript declarations @@ -149,3 +157,5 @@ export declare function record(fields: Record): AffineRecor export declare const AFFINE_TAG: Readonly<{ NONE: 0; SOME: 1; OK: 2; ERR: 3 }>; export declare const AFFINE_SIZE: Readonly<{ INT: 4; FLOAT: 8; PTR: 4; TAG: 4; LEN: 4 }>; + +==================================== */ diff --git a/affinescript-ecosystem/rattlescript/affinescript/packages/affine-ts/deno.json b/affinescript-ecosystem/rattlescript/affinescript/packages/affine-ts/deno.json deleted file mode 100644 index a3a15bbed..000000000 --- a/affinescript-ecosystem/rattlescript/affinescript/packages/affine-ts/deno.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "@hyperpolymath/affine-ts", - "version": "0.1.0", - "exports": { - ".": "./mod.js" - }, - "imports": { - "@hyperpolymath/affine-js": "../affine-js/mod.js" - }, - "license": "PMPL-1.0-or-later" -} diff --git a/affinescript-ecosystem/rattlescript/affinescript/packages/affine-ts/types.d.ts b/affinescript-ecosystem/rattlescript/affinescript/packages/affine-ts/types.d.affine similarity index 92% rename from affinescript-ecosystem/rattlescript/affinescript/packages/affine-ts/types.d.ts rename to affinescript-ecosystem/rattlescript/affinescript/packages/affine-ts/types.d.affine index 0332ddff3..5c4acd1e5 100644 --- a/affinescript-ecosystem/rattlescript/affinescript/packages/affine-ts/types.d.ts +++ b/affinescript-ecosystem/rattlescript/affinescript/packages/affine-ts/types.d.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module types.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) // // affine-ts: Enhanced TypeScript declarations @@ -59,3 +67,5 @@ export declare function isOk(value: AffineValue): value is AffineOk; /** Type-narrowing predicate: is this value Err? */ export declare function isErr(value: AffineValue): value is AffineErr; + +==================================== */ diff --git a/cadre-router/deno.json b/cadre-router/deno.json deleted file mode 100644 index e3e9e56ba..000000000 --- a/cadre-router/deno.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "@cadre/router", - "version": "0.1.0", - "exports": "./src/client/CadreRouter.js", - "tasks": { - "build": "rescript build", - "clean": "rescript clean", - "watch": "rescript build -w", - "test": "deno test --allow-read tests/" - }, - "imports": { - "@rescript/core": "npm:@rescript/core@^1.0.0", - "@rescript/react": "npm:@rescript/react@^0.12.0", - "rescript": "npm:rescript@^11.0.0" - }, - "compilerOptions": { - "lib": ["dom", "dom.iterable", "esnext"], - "jsx": "react-jsx", - "jsxImportSource": "react" - } -} diff --git a/cadre-router/mod.ts b/cadre-router/mod.affine similarity index 55% rename from cadre-router/mod.ts rename to cadre-router/mod.affine index e74ec3dd0..eed901c9a 100644 --- a/cadre-router/mod.ts +++ b/cadre-router/mod.affine @@ -1,7 +1,17 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module mod; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // mod.ts — Deno module entry point for cadre-router // // This file enables publishing to deno.land/x // Usage: import { Url, Parser, Navigation } from "https://deno.land/x/cadre_router/mod.ts" export * from "./src/client/CadreRouter.js"; + +==================================== */ diff --git a/cadre-router/tea-router-pkg/deno.json b/cadre-router/tea-router-pkg/deno.json deleted file mode 100644 index 0431ddb77..000000000 --- a/cadre-router/tea-router-pkg/deno.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "@cadre/tea-router", - "version": "0.1.0", - "exports": "./src/TeaRouter.js", - "tasks": { - "build": "rescript build", - "clean": "rescript clean", - "watch": "rescript build -w", - "test": "deno test --allow-read tests/" - }, - "imports": { - "cadre-router": "npm:cadre-router@^0.1.0", - "rescript-tea": "npm:rescript-tea@^0.9.0", - "rescript": "npm:rescript@^11.0.0" - } -} diff --git a/cadre-router/tea-router-pkg/mod.affine b/cadre-router/tea-router-pkg/mod.affine new file mode 100644 index 000000000..3056048b6 --- /dev/null +++ b/cadre-router/tea-router-pkg/mod.affine @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module mod; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 +// mod.ts — Deno module entry point for cadre-tea-router +// +// Usage: import { TeaRouter } from "https://deno.land/x/cadre_tea_router/mod.ts" + +export * from "./src/TeaRouter.js"; + +==================================== */ diff --git a/cadre-router/tea-router-pkg/mod.ts b/cadre-router/tea-router-pkg/mod.ts deleted file mode 100644 index 91b33f22a..000000000 --- a/cadre-router/tea-router-pkg/mod.ts +++ /dev/null @@ -1,6 +0,0 @@ -// SPDX-License-Identifier: MPL-2.0 -// mod.ts — Deno module entry point for cadre-tea-router -// -// Usage: import { TeaRouter } from "https://deno.land/x/cadre_tea_router/mod.ts" - -export * from "./src/TeaRouter.js"; diff --git a/cadre-tea-router/deno.json b/cadre-tea-router/deno.json deleted file mode 100644 index a610b76cf..000000000 --- a/cadre-tea-router/deno.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "@hyperpolymath/cadre-tea-router", - "version": "0.1.0", - "exports": "./src/CadreTeaRouter.res", - "tasks": { - "build": "deno run -A npm:rescript", - "clean": "deno run -A npm:rescript clean", - "watch": "deno run -A npm:rescript -w" - }, - "imports": { - "rescript": "npm:rescript@^12.1.0", - "@rescript/core": "npm:@rescript/core@^1.7.0", - "@anthropics/cadre-router": "npm:@anthropics/cadre-router@^0.1.0", - "rescript-tea": "../rescript-tea/src/", - "proven/": "../proven/bindings/rescript/src/" - }, - "compilerOptions": { - "allowJs": true, - "checkJs": false - } -} diff --git a/coq-ecosystem/coq-jr/deno.json b/coq-ecosystem/coq-jr/deno.json deleted file mode 100644 index 44a3d454d..000000000 --- a/coq-ecosystem/coq-jr/deno.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "@coq-jr/web", - "version": "0.1.0", - "tasks": { - "build:res": "npx rescript build", - "clean:res": "npx rescript clean", - "dev": "deno run --allow-net --allow-read server.ts", - "serve": "deno run --allow-net --allow-read server.ts", - "res:build": "rescript build", - "res:clean": "rescript clean", - "res:watch": "rescript build -w" - }, - "imports": { - "@std/http": "jsr:@std/http@^1.0.0", - "@std/path": "jsr:@std/path@^1.0.0", - "rescript": "^12.0.0" - }, - "compilerOptions": { - "lib": [ - "deno.window", - "dom" - ] - } -} \ No newline at end of file diff --git a/deno-ecosystem/projects/beamdeno/deno.json b/deno-ecosystem/projects/beamdeno/deno.json deleted file mode 100644 index 6e0790797..000000000 --- a/deno-ecosystem/projects/beamdeno/deno.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json", - "name": "@hyperpolymath/beamdeno", - "version": "1.0.0", - "license": "PMPL-1.0", - "exports": "./deno/mod.ts", - "tasks": { - "test": "deno test --allow-net --allow-run", - "test:integration": "deno test --allow-net --allow-run integration/", - "check": "deno check deno/mod.ts", - "fmt": "deno fmt", - "lint": "deno lint" - }, - "fmt": { - "indentWidth": 2, - "singleQuote": false, - "proseWrap": "preserve" - }, - "lint": { - "rules": { - "tags": ["recommended"] - } - }, - "compilerOptions": { - "strict": true, - "noImplicitAny": true - } -} diff --git a/deno-ecosystem/projects/deno-bunbridge/deno.json b/deno-ecosystem/projects/deno-bunbridge/deno.json deleted file mode 100644 index 69a9c361d..000000000 --- a/deno-ecosystem/projects/deno-bunbridge/deno.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json", - "name": "@hyperpolymath/deno-bunbridge", - "version": "0.1.0", - "license": "PMPL-1.0-or-later", - "exports": "./src/mod.ts", - "tasks": { - "test": "deno test --allow-ffi", - "check": "deno check src/mod.ts", - "fmt": "deno fmt", - "lint": "deno lint" - }, - "fmt": { - "indentWidth": 2, - "singleQuote": false, - "proseWrap": "preserve" - }, - "lint": { - "rules": { - "tags": ["recommended"] - } - }, - "compilerOptions": { - "strict": true, - "noImplicitAny": true - } -} diff --git a/deno.json b/deno.json deleted file mode 100644 index 3a0542583..000000000 --- a/deno.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json", - "name": "@hyperpolymath/developer-ecosystem", - "version": "0.1.0", - "license": "MPL-2.0", - "workspace": [ - "./affinescript-ecosystem/affinescript-deno-test", - "./affinescript-ecosystem/rattlescript/affinescript/packages/affine-js", - "./affinescript-ecosystem/rattlescript/affinescript/packages/affine-ts", - "./cadre-router", - "./cadre-router/tea-router-pkg", - "./cadre-tea-router", - "./coq-ecosystem/coq-jr", - "./deno-ecosystem/projects/beamdeno", - "./deno-ecosystem/projects/deno-bunbridge", - "./rescript-ecosystem/idaptik-rescript13-staging", - "./rescript-ecosystem/idaptik-rescript13-staging/idaptik-ums", - "./rescript-ecosystem/packages/bindings/d3", - "./rescript-ecosystem/packages/bindings/gossamer", - "./rescript-ecosystem/packages/bindings/redis", - "./rescript-ecosystem/packages/bindings/tauri", - "./rescript-ecosystem/packages/core/env", - "./rescript-ecosystem/packages/core/poly-core", - "./rescript-ecosystem/packages/core/runtime-tools", - "./rescript-ecosystem/packages/ffi/alib", - "./rescript-ecosystem/packages/ffi/wasm-runtime", - "./rescript-ecosystem/packages/ffi/zig-ffi", - "./rescript-ecosystem/packages/tooling/create-poly", - "./rescript-ecosystem/packages/tooling/evangeliser", - "./rescript-ecosystem/packages/tooling/greasy-rescripter", - "./rescript-ecosystem/packages/web/bridge-web", - "./rescript-ecosystem/packages/web/dom-mounter", - "./rescript-ecosystem/packages/web/http-server", - "./rescript-ecosystem/packages/web/tea", - "./rescript-ecosystem/packages/web/websocket", - "./rescript-ecosystem/rescript-deno-starter", - "./rescript-ecosystem/rescript-dom-mounter", - "./rescript-ecosystem/rescript-evangeliser", - "./rescript-ecosystem/rescript-tea", - "./rescript-ecosystem/rescript-vite", - "./v-ecosystem/v-deno" - ], - "tasks": { - "build-all": "deno task --recursive build", - "test-all": "deno task --recursive test", - "fmt": "deno fmt", - "lint": "deno lint" - }, - "fmt": { - "useTabs": false, - "lineWidth": 100, - "indentWidth": 2 - } -} diff --git a/rescript-ecosystem/cadre-router/deno.json b/rescript-ecosystem/cadre-router/deno.json deleted file mode 100644 index b082125d1..000000000 --- a/rescript-ecosystem/cadre-router/deno.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "@cadre/router", - "version": "0.1.0", - "exports": "./src/client/CadreRouter.js", - "tasks": { - "build": "rescript build", - "clean": "rescript clean", - "watch": "rescript build -w", - "test": "deno test --allow-read tests/" - }, - "imports": { - "@rescript/core": "npm:@rescript/core@^1.0.0", - "@rescript/react": "npm:@rescript/react@^0.12.0", - "rescript": "^12.0.0", - "rescript-dom-mounter": "npm:rescript-dom-mounter@file:../rescript-ecosystem/packages/web/dom-mounter", - "rescript-wasm-runtime": "npm:rescript-wasm-runtime@file:../rescript-ecosystem/packages/ffi/wasm-runtime", - "react": "npm:react@^18.2.0", - "react-dom": "npm:react-dom@^18.2.0", - "rescript-tea": "npm:rescript-tea@^0.16.0" - }, - "compilerOptions": { - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], - "jsx": "react-jsx", - "jsxImportSource": "react" - } -} \ No newline at end of file diff --git a/rescript-ecosystem/cadre-router/tea-router-pkg/deno.json b/rescript-ecosystem/cadre-router/tea-router-pkg/deno.json deleted file mode 100644 index 267a96f9a..000000000 --- a/rescript-ecosystem/cadre-router/tea-router-pkg/deno.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "@cadre/tea-router", - "version": "0.1.0", - "exports": "./src/TeaRouter.js", - "tasks": { - "build": "rescript build", - "clean": "rescript clean", - "watch": "rescript build -w", - "test": "deno test --allow-read tests/" - }, - "imports": { - "cadre-router": "npm:cadre-router@^0.1.0", - "rescript-tea": "npm:rescript-tea@^0.9.0", - "rescript": "^12.0.0" - } -} diff --git a/rescript-ecosystem/cadre-router/tea-router/deno.json b/rescript-ecosystem/cadre-router/tea-router/deno.json deleted file mode 100644 index 8115de537..000000000 --- a/rescript-ecosystem/cadre-router/tea-router/deno.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "@hyperpolymath/cadre-tea-router", - "version": "0.1.0", - "exports": "./src/CadreTeaRouter.res", - "tasks": { - "build": "deno run -A npm:rescript", - "clean": "deno run -A npm:rescript clean", - "watch": "deno run -A npm:rescript -w" - }, - "imports": { - "rescript": "^12.0.0", - "@rescript/core": "npm:@rescript/core@^1.7.0", - "@anthropics/cadre-router": "npm:@anthropics/cadre-router@^0.1.0", - "rescript-tea": "../rescript-tea/src/", - "proven/": "../proven/bindings/rescript/src/" - }, - "compilerOptions": { - "allowJs": true, - "checkJs": false - } -} diff --git a/rescript-ecosystem/cadre-tea-router/deno.json b/rescript-ecosystem/cadre-tea-router/deno.json deleted file mode 100644 index 8115de537..000000000 --- a/rescript-ecosystem/cadre-tea-router/deno.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "@hyperpolymath/cadre-tea-router", - "version": "0.1.0", - "exports": "./src/CadreTeaRouter.res", - "tasks": { - "build": "deno run -A npm:rescript", - "clean": "deno run -A npm:rescript clean", - "watch": "deno run -A npm:rescript -w" - }, - "imports": { - "rescript": "^12.0.0", - "@rescript/core": "npm:@rescript/core@^1.7.0", - "@anthropics/cadre-router": "npm:@anthropics/cadre-router@^0.1.0", - "rescript-tea": "../rescript-tea/src/", - "proven/": "../proven/bindings/rescript/src/" - }, - "compilerOptions": { - "allowJs": true, - "checkJs": false - } -} diff --git a/rescript-ecosystem/idaptik-rescript13-staging/deno.json b/rescript-ecosystem/idaptik-rescript13-staging/deno.json deleted file mode 100644 index a9bd1a4b0..000000000 --- a/rescript-ecosystem/idaptik-rescript13-staging/deno.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "compilerOptions": { - "lib": ["deno.window", "deno.unstable"], - "strict": true - }, - "lint": { - "exclude": [ - "dist/", - "lib/", - "node_modules/", - "src/**/*.res.mjs" - ], - "rules": { - "tags": ["recommended"] - } - }, - "fmt": { - "exclude": ["dist/", "lib/", "node_modules/", "src/**/*.res.mjs"], - "options": { - "useTabs": false, - "lineWidth": 88, - "indentWidth": 2, - "singleQuote": true - } - }, - "imports": { - "@assetpack/core": "npm:@assetpack/core@1.7.0", - "@rescript/core": "npm:@rescript/core@1.6.1", - "@rescript/runtime": "npm:@rescript/runtime@12.2.0", - "rescript": "npm:rescript@12.2.0", - "@esotericsoftware/spine-pixi-v8": "npm:@esotericsoftware/spine-pixi-v8@4.2.74", - "@pixi/sound": "npm:@pixi/sound@6.0.1", - "@pixi/ui": "npm:@pixi/ui@2.2.2", - "motion": "npm:motion@12.4.7", - "pixi.js": "npm:pixi.js@8.8.1", - "vite": "npm:vite@6.2.0" - }, - "tasks": { - "start": "deno task dev", - "res:build": "deno run --node-modules-dir=auto --allow-read --allow-write --allow-env --allow-run npm:rescript@12.2.0", - "res:clean": "deno run --node-modules-dir=auto --allow-read --allow-write --allow-env --allow-run npm:rescript@12.2.0 clean", - "res:dev": "deno run --node-modules-dir=auto --allow-read --allow-write --allow-env --allow-run npm:rescript@12.2.0 -w", - "build": "deno task res:build && deno run --node-modules-dir=auto --allow-read --allow-write --allow-env --allow-net --allow-sys --allow-ffi --allow-run npm:vite build --logLevel warn", - "dev": "deno task res:dev & deno task dev:vite", - "dev:vite": "deno run --node-modules-dir=auto --allow-read --allow-write --allow-env --allow-net --allow-sys --allow-ffi --allow-run npm:vite", - "lint": "DENO_NO_PACKAGE_JSON=1 deno lint", - "sync-server": "cd sync-server && mix phx.server", - "dev:all": "deno task sync-server & deno task dev" - } -} diff --git a/rescript-ecosystem/idaptik-rescript13-staging/idaptik-ums/deno.json b/rescript-ecosystem/idaptik-rescript13-staging/idaptik-ums/deno.json deleted file mode 100644 index 95b2f484a..000000000 --- a/rescript-ecosystem/idaptik-rescript13-staging/idaptik-ums/deno.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "// SPDX-License-Identifier": "AGPL-3.0-or-later", - "// description": "Deno task configuration for the IDApTIK Universal Modding Studio. Orchestrates ReScript compilation, Gossamer backend, and production builds.", - "tasks": { - "res:build": "npx rescript build", - "res:watch": "npx rescript build -w", - "res:clean": "npx rescript clean", - "dev": "deno task res:build && (deno task res:watch & deno task gossamer:dev)", - "build": "deno task res:build && deno task gossamer:build", - "gossamer:dev": "cargo run", - "gossamer:build": "cargo build --release", - "test": "cargo test", - "test:zig": "cd ffi/zig && zig build test", - "validate": "deno task test && deno task test:zig" - }, - "compilerOptions": { - "lib": ["deno.window"] - } -} diff --git a/rescript-ecosystem/packages/bindings/d3/deno.json b/rescript-ecosystem/packages/bindings/d3/deno.json deleted file mode 100644 index adba4a33f..000000000 --- a/rescript-ecosystem/packages/bindings/d3/deno.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "@hyperpolymath/rescript-d3", - "version": "0.1.0", - "exports": "./src/D3.res.js", - "tasks": { - "build": "rescript build", - "clean": "rescript clean", - "watch": "rescript build -w" - }, - "imports": { - "d3": "npm:d3@^7" - } -} diff --git a/rescript-ecosystem/packages/bindings/gossamer/deno.json b/rescript-ecosystem/packages/bindings/gossamer/deno.json deleted file mode 100644 index a31b69945..000000000 --- a/rescript-ecosystem/packages/bindings/gossamer/deno.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "@hyperpolymath/rescript-gossamer", - "version": "0.1.0", - "exports": "./lib/es6/src/Gossamer.res.mjs", - "imports": { - "@rescript/core": "npm:@rescript/core@^1.0.0", - "rescript": "^12.0.0" - }, - "tasks": { - "build": "deno run -A npm:rescript build", - "watch": "deno run -A npm:rescript build -w", - "clean": "deno run -A npm:rescript clean", - "test": "deno test --allow-read --allow-env test/", - "check": "deno check src/**/*.res.mjs" - }, - "fmt": { - "include": [ - "src/", - "test/" - ], - "exclude": [ - "lib/" - ] - }, - "lint": { - "include": [ - "src/", - "test/" - ], - "exclude": [ - "lib/" - ] - } -} diff --git a/rescript-ecosystem/packages/bindings/redis/deno.json b/rescript-ecosystem/packages/bindings/redis/deno.json deleted file mode 100644 index 26290ae66..000000000 --- a/rescript-ecosystem/packages/bindings/redis/deno.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "name": "@hyperpolymath/rescript-redis", - "version": "0.1.0", - "license": "PMPL-1.0-or-later", - "exports": "./src/Redis.res.js", - "publish": { - "include": [ - "src/**/*.res", - "src/**/*.resi", - "src/**/*.res.js", - "README.adoc", - "LICENSE.txt", - "deno.json" - ] - }, - "tasks": { - "build": "rescript build", - "clean": "rescript clean", - "dev": "rescript build -w", - "test": "deno test --allow-net tests/", - "test:watch": "deno test --allow-net --watch tests/", - "check": "deno check src/**/*.res.js", - "fmt": "deno fmt", - "lint": "deno lint" - }, - "imports": { - "redis": "https://deno.land/x/redis@v0.32.4/mod.ts", - "@std/assert": "jsr:@std/assert@^1.0.0", - "@std/testing": "jsr:@std/testing@^1.0.0" - }, - "compilerOptions": { - "lib": ["deno.ns", "deno.unstable"], - "strict": true - }, - "fmt": { - "useTabs": false, - "lineWidth": 100, - "indentWidth": 2, - "semiColons": false, - "singleQuote": false - }, - "lint": { - "rules": { - "tags": ["recommended"] - } - } -} diff --git a/rescript-ecosystem/packages/bindings/redis/tests/redis_test.ts b/rescript-ecosystem/packages/bindings/redis/tests/redis_test.affine similarity index 93% rename from rescript-ecosystem/packages/bindings/redis/tests/redis_test.ts rename to rescript-ecosystem/packages/bindings/redis/tests/redis_test.affine index fa0b171cd..0048333ea 100644 --- a/rescript-ecosystem/packages/bindings/redis/tests/redis_test.ts +++ b/rescript-ecosystem/packages/bindings/redis/tests/redis_test.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module redis_test; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // SPDX-FileCopyrightText: 2025 Hyperpolymath /** @@ -117,3 +125,5 @@ Deno.test({ assertExists(true) // Placeholder - replace with actual module checks }, }) + +==================================== */ diff --git a/rescript-ecosystem/packages/bindings/tauri/deno.json b/rescript-ecosystem/packages/bindings/tauri/deno.json deleted file mode 100644 index 41db5c093..000000000 --- a/rescript-ecosystem/packages/bindings/tauri/deno.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "@hyperpolymath/rescript-tauri", - "version": "0.1.0", - "description": "DEPRECATED: Use @gossamer/api (rescript-gossamer) instead. ReScript bindings for Tauri 2.0.", - "exports": "./lib/es6/src/Tauri.res.mjs", - "imports": { - "@tauri-apps/api": "npm:@tauri-apps/api@^2.0.0", - "@rescript/core": "npm:@rescript/core@^1.0.0", - "rescript": "^12.0.0" - }, - "tasks": { - "build": "deno run -A npm:rescript build", - "watch": "deno run -A npm:rescript build -w", - "clean": "deno run -A npm:rescript clean", - "test": "deno test --allow-read --allow-env test/", - "check": "deno check src/**/*.res.mjs" - }, - "fmt": { - "include": [ - "src/", - "test/", - "examples/" - ], - "exclude": [ - "lib/" - ] - }, - "lint": { - "include": [ - "src/", - "test/", - "examples/" - ], - "exclude": [ - "lib/" - ] - } -} \ No newline at end of file diff --git a/rescript-ecosystem/packages/core/compiler-source/analysis/examples/example-project/src/syntax/sample-highlighting.tsx b/rescript-ecosystem/packages/core/compiler-source/analysis/examples/example-project/src/syntax/sample-highlighting.affine similarity index 86% rename from rescript-ecosystem/packages/core/compiler-source/analysis/examples/example-project/src/syntax/sample-highlighting.tsx rename to rescript-ecosystem/packages/core/compiler-source/analysis/examples/example-project/src/syntax/sample-highlighting.affine index b646a4cfb..68fbfc74f 100644 --- a/rescript-ecosystem/packages/core/compiler-source/analysis/examples/example-project/src/syntax/sample-highlighting.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/analysis/examples/example-project/src/syntax/sample-highlighting.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module sample-highlighting; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === // Bindings let numberBinding = 123; @@ -92,3 +100,5 @@ let jsx = ( function Property() { throw new Error("Function not implemented."); } + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/darwin-arm64/bin.d.affine b/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/darwin-arm64/bin.d.affine new file mode 100644 index 000000000..b3ff76e92 --- /dev/null +++ b/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/darwin-arm64/bin.d.affine @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module bin.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +export const binDir: string; + +export const binPaths: BinaryPaths; + +export type BinaryPaths = { + bsc_exe: string; + rescript_tools_exe: string; + rescript_editor_analysis_exe: string; + rescript_exe: string; +}; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/darwin-arm64/bin.d.ts b/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/darwin-arm64/bin.d.ts deleted file mode 100644 index f6fa8daac..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/darwin-arm64/bin.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export const binDir: string; - -export const binPaths: BinaryPaths; - -export type BinaryPaths = { - bsc_exe: string; - rescript_tools_exe: string; - rescript_editor_analysis_exe: string; - rescript_exe: string; -}; diff --git a/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/darwin-x64/bin.d.affine b/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/darwin-x64/bin.d.affine new file mode 100644 index 000000000..b3ff76e92 --- /dev/null +++ b/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/darwin-x64/bin.d.affine @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module bin.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +export const binDir: string; + +export const binPaths: BinaryPaths; + +export type BinaryPaths = { + bsc_exe: string; + rescript_tools_exe: string; + rescript_editor_analysis_exe: string; + rescript_exe: string; +}; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/darwin-x64/bin.d.ts b/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/darwin-x64/bin.d.ts deleted file mode 100644 index f6fa8daac..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/darwin-x64/bin.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export const binDir: string; - -export const binPaths: BinaryPaths; - -export type BinaryPaths = { - bsc_exe: string; - rescript_tools_exe: string; - rescript_editor_analysis_exe: string; - rescript_exe: string; -}; diff --git a/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/linux-arm64/bin.d.affine b/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/linux-arm64/bin.d.affine new file mode 100644 index 000000000..b3ff76e92 --- /dev/null +++ b/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/linux-arm64/bin.d.affine @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module bin.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +export const binDir: string; + +export const binPaths: BinaryPaths; + +export type BinaryPaths = { + bsc_exe: string; + rescript_tools_exe: string; + rescript_editor_analysis_exe: string; + rescript_exe: string; +}; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/linux-arm64/bin.d.ts b/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/linux-arm64/bin.d.ts deleted file mode 100644 index f6fa8daac..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/linux-arm64/bin.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export const binDir: string; - -export const binPaths: BinaryPaths; - -export type BinaryPaths = { - bsc_exe: string; - rescript_tools_exe: string; - rescript_editor_analysis_exe: string; - rescript_exe: string; -}; diff --git a/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/linux-x64/bin.d.affine b/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/linux-x64/bin.d.affine new file mode 100644 index 000000000..b3ff76e92 --- /dev/null +++ b/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/linux-x64/bin.d.affine @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module bin.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +export const binDir: string; + +export const binPaths: BinaryPaths; + +export type BinaryPaths = { + bsc_exe: string; + rescript_tools_exe: string; + rescript_editor_analysis_exe: string; + rescript_exe: string; +}; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/linux-x64/bin.d.ts b/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/linux-x64/bin.d.ts deleted file mode 100644 index f6fa8daac..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/linux-x64/bin.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export const binDir: string; - -export const binPaths: BinaryPaths; - -export type BinaryPaths = { - bsc_exe: string; - rescript_tools_exe: string; - rescript_editor_analysis_exe: string; - rescript_exe: string; -}; diff --git a/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/win32-x64/bin.d.affine b/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/win32-x64/bin.d.affine new file mode 100644 index 000000000..b3ff76e92 --- /dev/null +++ b/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/win32-x64/bin.d.affine @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module bin.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +export const binDir: string; + +export const binPaths: BinaryPaths; + +export type BinaryPaths = { + bsc_exe: string; + rescript_tools_exe: string; + rescript_editor_analysis_exe: string; + rescript_exe: string; +}; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/win32-x64/bin.d.ts b/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/win32-x64/bin.d.ts deleted file mode 100644 index f6fa8daac..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/packages/@rescript/win32-x64/bin.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export const binDir: string; - -export const binPaths: BinaryPaths; - -export type BinaryPaths = { - bsc_exe: string; - rescript_tools_exe: string; - rescript_editor_analysis_exe: string; - rescript_exe: string; -}; diff --git a/rescript-ecosystem/packages/core/compiler-source/packages/playground/tsconfig.json b/rescript-ecosystem/packages/core/compiler-source/packages/playground/tsconfig.json deleted file mode 100644 index 49d00ee97..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/packages/playground/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "resolveJsonModule": true - }, - "include": ["scripts", "rescript.json"], - "exclude": ["lib/**"] -} diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/stdlib-no-shims/src/StdlibNoShims.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/stdlib-no-shims/src/StdlibNoShims.gen.affine similarity index 95% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/stdlib-no-shims/src/StdlibNoShims.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/stdlib-no-shims/src/StdlibNoShims.gen.affine index 8f46ce8d8..e267b8dc2 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/stdlib-no-shims/src/StdlibNoShims.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/stdlib-no-shims/src/StdlibNoShims.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module StdlibNoShims.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from StdlibNoShims.res by genType. */ /* eslint-disable */ @@ -116,3 +124,5 @@ export const idIntlSegments: (x:Intl.Segments) => Intl.Segments = StdlibNoShimsJ export const idJsError: (x:Error) => Error = StdlibNoShimsJS.idJsError as any; export const idObj: (x:{}) => {} = StdlibNoShimsJS.idObj as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/stdlib-no-shims/src/index.ts b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/stdlib-no-shims/src/index.affine similarity index 94% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/stdlib-no-shims/src/index.ts rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/stdlib-no-shims/src/index.affine index 456660117..01bbf898b 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/stdlib-no-shims/src/index.ts +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/stdlib-no-shims/src/index.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module index; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === // Import the generated bindings to force TS to resolve types without shims import * as S from "./StdlibNoShims.gen"; @@ -118,3 +126,5 @@ const _obj: {} = S.idObj({ a: 1, b: "x" }); // Tuple const _tup: [number, string, number] = S.idTuple([1, "x", 1.5]); + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/stdlib-no-shims/tsconfig.json b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/stdlib-no-shims/tsconfig.json deleted file mode 100644 index d466b7089..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/stdlib-no-shims/tsconfig.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2020", - "module": "ESNext", - "moduleResolution": "Node", - "jsx": "preserve", - "strict": true, - "noEmit": true, - "lib": ["DOM", "DOM.Iterable", "ESNext"], - "skipLibCheck": true, - "allowImportingTsExtensions": true, - "allowJs": true - }, - "include": ["src/**/*.ts", "src/**/*.tsx"] -} diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/App.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/App.affine similarity index 52% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/App.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/App.affine index f5e213df6..8976833f7 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/App.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/App.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module App; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === import * as React from "react"; import "./App.css"; @@ -13,3 +21,5 @@ class App extends React.PureComponent { } export default App; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/AutoAnnotate.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/AutoAnnotate.gen.affine similarity index 64% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/AutoAnnotate.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/AutoAnnotate.gen.affine index 55660702c..9fadb4d05 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/AutoAnnotate.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/AutoAnnotate.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module AutoAnnotate.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from AutoAnnotate.res by genType. */ /* eslint-disable */ @@ -16,3 +24,5 @@ export type r4 = { readonly r4: number }; export type annotatedVariant = { TAG: "R2"; _0: r2; _1: r3 } | { TAG: "R4"; _0: r4 }; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/BucklescriptAnnotations.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/BucklescriptAnnotations.gen.affine similarity index 67% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/BucklescriptAnnotations.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/BucklescriptAnnotations.gen.affine index 3a734499c..7bc09242f 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/BucklescriptAnnotations.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/BucklescriptAnnotations.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module BucklescriptAnnotations.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from BucklescriptAnnotations.res by genType. */ /* eslint-disable */ @@ -16,3 +24,5 @@ export type someMethods = { readonly threeargs: (_1:number, _2:string, _3:number) => string; readonly twoArgs: (_1:number, _2:string) => number }; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Comments.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Comments.gen.affine similarity index 82% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Comments.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Comments.gen.affine index 584da010c..4dcf48e1a 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Comments.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Comments.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Comments.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Comments.res by genType. */ /* eslint-disable */ @@ -28,3 +36,5 @@ export const DecideSubject__placeholder: (run:string, times:number) => void = Co export const DecideSubject: { /** Decide on a subject matter for a poem. */ _placeholder: (run:string, times:number) => void } = CommentsJS.DecideSubject as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Core.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Core.gen.affine similarity index 93% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Core.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Core.gen.affine index 6001f862e..7bc7fa5ae 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Core.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Core.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Core.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Core.res by genType. */ /* eslint-disable */ @@ -72,3 +80,5 @@ export const option1: (x:(undefined | variant)) => (undefined | variant) = CoreJ export const jsonEncodeString1: unknown = CoreJS.jsonEncodeString1 as any; export const jsonEncodeString2: unknown = CoreJS.jsonEncodeString2 as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/CoreTS.ts b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/CoreTS.affine similarity index 51% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/CoreTS.ts rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/CoreTS.affine index 9c15fb041..e3c52d689 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/CoreTS.ts +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/CoreTS.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module CoreTS; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === export declare function someFunWithNullThenOptionalArgs( nullable: null | string, app?: string, @@ -7,3 +15,5 @@ export declare function someFunWithNullUndefinedArg( nullUndefined: null | undefined | string, other: number, ): string; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Derivings.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Derivings.gen.affine similarity index 64% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Derivings.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Derivings.gen.affine index 5a23227fc..1d8c83a90 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Derivings.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Derivings.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Derivings.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Derivings.res by genType. */ /* eslint-disable */ @@ -15,3 +23,5 @@ export const click: action = DerivingsJS.click as any; export const submit: (_1:string) => action = DerivingsJS.submit as any; export const cancel: action = DerivingsJS.cancel as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Docstrings.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Docstrings.gen.affine similarity index 89% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Docstrings.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Docstrings.gen.affine index 2d849d55a..aee694f66 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Docstrings.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Docstrings.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Docstrings.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Docstrings.res by genType. */ /* eslint-disable */ @@ -50,3 +58,5 @@ export const unitArgWithoutConversionU: () => string = DocstringsJS.unitArgWitho export const unitArgWithConversion: () => t = DocstringsJS.unitArgWithConversion as any; export const unitArgWithConversionU: () => t = DocstringsJS.unitArgWithConversionU as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/EmitModuleIfNoConversion.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/EmitModuleIfNoConversion.gen.affine similarity index 71% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/EmitModuleIfNoConversion.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/EmitModuleIfNoConversion.gen.affine index 0bfa420df..e3595e1c6 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/EmitModuleIfNoConversion.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/EmitModuleIfNoConversion.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module EmitModuleIfNoConversion.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from EmitModuleIfNoConversion.res by genType. */ /* eslint-disable */ @@ -16,3 +24,5 @@ export const Y_x: string = EmitModuleIfNoConversionJS.Y.x as any; export const Y: { x: string } = EmitModuleIfNoConversionJS.Y as any; export const X: { x: number; foo: (t:t) => void } = EmitModuleIfNoConversionJS.X as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/EscapedNames.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/EscapedNames.gen.affine similarity index 72% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/EscapedNames.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/EscapedNames.gen.affine index e4ade9ad9..e9d6ff071 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/EscapedNames.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/EscapedNames.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module EscapedNames.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from EscapedNames.res by genType. */ /* eslint-disable */ @@ -21,3 +29,5 @@ export type record = { }; export const myRecord: record = EscapedNamesJS.myRecord as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ExportWithRename.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ExportWithRename.gen.affine similarity index 57% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ExportWithRename.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ExportWithRename.gen.affine index 6e8cb207c..7c1a9fecc 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ExportWithRename.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ExportWithRename.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module ExportWithRename.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from ExportWithRename.res by genType. */ /* eslint-disable */ @@ -8,3 +16,5 @@ import * as ExportWithRenameJS from './ExportWithRename.res.js'; export type props = { readonly s: s }; export const Renamed: React.ComponentType<{ readonly s: string }> = ExportWithRenameJS.make as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/FirstClassModules.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/FirstClassModules.gen.affine similarity index 87% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/FirstClassModules.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/FirstClassModules.gen.affine index 3b0d202e0..9a521f2e3 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/FirstClassModules.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/FirstClassModules.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module FirstClassModules.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from FirstClassModules.res by genType. */ /* eslint-disable */ @@ -64,3 +72,5 @@ export const someFunctorAsFunction: (x:{ readonly Z: unknown; readonly y: string }) => { readonly ww: string } = FirstClassModulesJS.someFunctorAsFunction as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/FirstClassModulesInterface.gen.affine b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/FirstClassModulesInterface.gen.affine new file mode 100644 index 000000000..55b037179 --- /dev/null +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/FirstClassModulesInterface.gen.affine @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module FirstClassModulesInterface.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from FirstClassModulesInterface.resi by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +export type record = { readonly x: number; readonly y: string }; + +export type firstClassModule = { readonly x: number }; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/FirstClassModulesInterface.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/FirstClassModulesInterface.gen.tsx deleted file mode 100644 index 6da111a8a..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/FirstClassModulesInterface.gen.tsx +++ /dev/null @@ -1,8 +0,0 @@ -/* TypeScript file generated from FirstClassModulesInterface.resi by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -export type record = { readonly x: number; readonly y: string }; - -export type firstClassModule = { readonly x: number }; diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/GADT.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/GADT.gen.affine similarity index 53% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/GADT.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/GADT.gen.affine index b6e29a5c5..4a0aec2a8 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/GADT.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/GADT.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module GADT.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from GADT.res by genType. */ /* eslint-disable */ @@ -6,3 +14,5 @@ export abstract class t { protected opaque!: any }; /* simulate opaque types */ export abstract class tt { protected opaque!: any }; /* simulate opaque types */ + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Hooks.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Hooks.gen.affine similarity index 96% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Hooks.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Hooks.gen.affine index 3ebfd5880..ac6aa0b93 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Hooks.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Hooks.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Hooks.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Hooks.res by genType. */ /* eslint-disable */ @@ -137,3 +145,5 @@ export const DD: { make: React.ComponentType<{ readonly array: Js_TypedArray2_Ui export const Another: { anotherComponent: React.ComponentType<{ readonly vehicle: vehicle; readonly callback: () => void }> } = HooksJS.Another as any; export const Poly: { polymorphicComponent: React.ComponentType<{ readonly p: [vehicle, any] }> } = HooksJS.Poly as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/IgnoreInterface.gen.affine b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/IgnoreInterface.gen.affine new file mode 100644 index 000000000..c491e92ec --- /dev/null +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/IgnoreInterface.gen.affine @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module IgnoreInterface.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from IgnoreInterface.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +export type t = number; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/IgnoreInterface.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/IgnoreInterface.gen.tsx deleted file mode 100644 index e1da44fd5..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/IgnoreInterface.gen.tsx +++ /dev/null @@ -1,6 +0,0 @@ -/* TypeScript file generated from IgnoreInterface.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -export type t = number; diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ImportHookDefault.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ImportHookDefault.gen.affine similarity index 88% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ImportHookDefault.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ImportHookDefault.gen.affine index 8552188b0..e90a5c19a 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ImportHookDefault.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ImportHookDefault.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module ImportHookDefault.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from ImportHookDefault.res by genType. */ /* eslint-disable */ @@ -52,3 +60,5 @@ export type MM_props = { }; export default $$default; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ImportHooks.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ImportHooks.gen.affine similarity index 86% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ImportHooks.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ImportHooks.gen.affine index fc7dd23a2..1a4cc3306 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ImportHooks.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ImportHooks.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module ImportHooks.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from ImportHooks.res by genType. */ /* eslint-disable */ @@ -39,3 +47,5 @@ export type props = { readonly children: children; readonly renderMe: renderMe }; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ImportIndex.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ImportIndex.gen.affine similarity index 73% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ImportIndex.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ImportIndex.gen.affine index 31f142f07..1911e9698 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ImportIndex.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ImportIndex.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module ImportIndex.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from ImportIndex.res by genType. */ /* eslint-disable */ @@ -14,3 +22,5 @@ export const $$default: unknown = defaultTypeChecked as React.ComponentType<{ re export type props = { readonly method?: method }; export default $$default; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ImportJsValue.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ImportJsValue.gen.affine similarity index 95% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ImportJsValue.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ImportJsValue.gen.affine index 96acb5ab4..01c6d1460 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ImportJsValue.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ImportJsValue.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module ImportJsValue.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from ImportJsValue.res by genType. */ /* eslint-disable */ @@ -120,3 +128,5 @@ export const useGetAbs: (x:AbsoluteValue_t) => number = ImportJsValueJS.useGetAb export const returnedFromHigherOrder: number = ImportJsValueJS.returnedFromHigherOrder as any; export default $$default; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Inherits.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Inherits.gen.affine similarity index 50% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Inherits.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Inherits.gen.affine index 29faeb762..8e64d313a 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Inherits.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Inherits.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Inherits.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Inherits.res by genType. */ /* eslint-disable */ @@ -8,3 +16,5 @@ export type red = "Ruby" | "Redwood" | "Rust"; export type blue = "Sapphire" | "Neon" | "Navy"; export type color = red | blue; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/InnerModuleSignature.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/InnerModuleSignature.gen.affine similarity index 64% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/InnerModuleSignature.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/InnerModuleSignature.gen.affine index f5e9015cb..35d4034d1 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/InnerModuleSignature.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/InnerModuleSignature.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module InnerModuleSignature.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from InnerModuleSignature.res by genType. */ /* eslint-disable */ @@ -10,3 +18,5 @@ export type InnerModule_t = string; export const InnerModule_make: (_1:InnerModule_t) => string = InnerModuleSignatureJS.InnerModule.make as any; export const InnerModule: { make: (_1:InnerModule_t) => string } = InnerModuleSignatureJS.InnerModule as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/JSXV4.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/JSXV4.gen.affine similarity index 86% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/JSXV4.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/JSXV4.gen.affine index 5d138887b..c623bc4b0 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/JSXV4.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/JSXV4.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module JSXV4.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from JSXV4.res by genType. */ /* eslint-disable */ @@ -41,3 +49,5 @@ export type props = { export const CompV4_make: React.ComponentType<{ readonly x: string; readonly y: string }> = JSXV4JS.CompV4.make as any; export const CompV4: { make: React.ComponentType<{ readonly x: string; readonly y: string }> } = JSXV4JS.CompV4 as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/LabeledFun.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/LabeledFun.gen.affine similarity index 56% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/LabeledFun.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/LabeledFun.gen.affine index dad8e55ed..433eaa6b0 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/LabeledFun.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/LabeledFun.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module LabeledFun.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from LabeledFun.res by genType. */ /* eslint-disable */ @@ -6,3 +14,5 @@ import * as LabeledFunJS from './LabeledFun.res.js'; export const labelled: (a:number, b:(undefined | number), c:number, _4:number, e:number, f:number) => number = LabeledFunJS.labelled as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/LetPrivate.gen.affine b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/LetPrivate.gen.affine new file mode 100644 index 000000000..c00f5d1ce --- /dev/null +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/LetPrivate.gen.affine @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module LetPrivate.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from LetPrivate.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +import * as LetPrivateJS from './LetPrivate.res.js'; + +export const y: number = LetPrivateJS.y as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/LetPrivate.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/LetPrivate.gen.tsx deleted file mode 100644 index 4e8a975cb..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/LetPrivate.gen.tsx +++ /dev/null @@ -1,8 +0,0 @@ -/* TypeScript file generated from LetPrivate.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -import * as LetPrivateJS from './LetPrivate.res.js'; - -export const y: number = LetPrivateJS.y as any; diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Lib.gen.affine b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Lib.gen.affine new file mode 100644 index 000000000..0e48ee0c8 --- /dev/null +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Lib.gen.affine @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Lib.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from Lib.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +export type action = + { action: "A"; _0: string } + | { action: "B"; _0: string }; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Lib.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Lib.gen.tsx deleted file mode 100644 index 83b8e6707..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Lib.gen.tsx +++ /dev/null @@ -1,8 +0,0 @@ -/* TypeScript file generated from Lib.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -export type action = - { action: "A"; _0: string } - | { action: "B"; _0: string }; diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Machine.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Machine.gen.affine similarity index 50% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Machine.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Machine.gen.affine index 9f96470cc..6e7107150 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Machine.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Machine.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Machine.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Machine.res by genType. */ /* eslint-disable */ @@ -8,3 +16,5 @@ import * as MachineJS from './Machine.res.js'; export type aa = { TAG: "A"; _0: number }; export const a: aa = MachineJS.a as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ModuleAliases.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ModuleAliases.gen.affine similarity index 82% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ModuleAliases.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ModuleAliases.gen.affine index 6f6a95ed9..f12957a02 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ModuleAliases.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ModuleAliases.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module ModuleAliases.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from ModuleAliases.res by genType. */ /* eslint-disable */ @@ -24,3 +32,5 @@ export const testNested: (x:InnerNestedAlias_t) => InnerNestedAlias_t = ModuleAl export const testInner: (x:Outer2Alias_OuterInnerAlias_innerT) => Outer2Alias_OuterInnerAlias_innerT = ModuleAliasesJS.testInner as any; export const testInner2: (x:Outer2Alias_Inner2_OuterInnerAlias2_innerT) => Outer2Alias_Inner2_OuterInnerAlias2_innerT = ModuleAliasesJS.testInner2 as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ModuleAliases2.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ModuleAliases2.gen.affine similarity index 65% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ModuleAliases2.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ModuleAliases2.gen.affine index e5cf11bca..b45d4fd7f 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ModuleAliases2.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ModuleAliases2.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module ModuleAliases2.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from ModuleAliases2.res by genType. */ /* eslint-disable */ @@ -14,3 +22,5 @@ export type OuterAlias_outer = Outer_outer; export type OuterAlias_Inner_inner = Outer_Inner_inner; export type InnerAlias_inner = OuterAlias_Inner_inner; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ModuleResolution1.gen.affine b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ModuleResolution1.gen.affine new file mode 100644 index 000000000..0dfeabc04 --- /dev/null +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ModuleResolution1.gen.affine @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module ModuleResolution1.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from ModuleResolution1.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +export type t1 = { readonly foo: string; readonly bar: number }; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ModuleResolution1.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ModuleResolution1.gen.tsx deleted file mode 100644 index 3fe5123d7..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ModuleResolution1.gen.tsx +++ /dev/null @@ -1,6 +0,0 @@ -/* TypeScript file generated from ModuleResolution1.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -export type t1 = { readonly foo: string; readonly bar: number }; diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ModuleResolution2.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ModuleResolution2.gen.affine similarity index 51% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ModuleResolution2.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ModuleResolution2.gen.affine index d9e793ef6..245fa1e7b 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ModuleResolution2.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ModuleResolution2.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module ModuleResolution2.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from ModuleResolution2.res by genType. */ /* eslint-disable */ @@ -6,3 +14,5 @@ import type {t1 as ModuleResolution1_t1} from './ModuleResolution1.gen'; export type t2 = { readonly dependency: ModuleResolution1_t1 }; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MoreVariants.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MoreVariants.gen.affine similarity index 67% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MoreVariants.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MoreVariants.gen.affine index 9da02967f..efafad753 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MoreVariants.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MoreVariants.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module MoreVariants.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from MoreVariants.res by genType. */ /* eslint-disable */ @@ -12,3 +20,5 @@ export type withoutRenaming = "type_" | "b"; export const testWithRenaming: (x:withRenaming) => withRenaming = MoreVariantsJS.testWithRenaming as any; export const testWithoutRenaming: (x:withoutRenaming) => withoutRenaming = MoreVariantsJS.testWithoutRenaming as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MyInput.affine b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MyInput.affine new file mode 100644 index 000000000..93f304cb8 --- /dev/null +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MyInput.affine @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module MyInput; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +import type * as React from "react"; + +type Props = React.InputHTMLAttributes; + +const MyInput: React.FC = props => ; + +export default MyInput; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MyInput.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MyInput.gen.affine similarity index 78% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MyInput.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MyInput.gen.affine index 9e9e89735..b294fd498 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MyInput.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MyInput.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module MyInput.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from MyInput.res by genType. */ /* eslint-disable */ @@ -18,3 +26,5 @@ export type inputFocusEvent = $$inputFocusEvent; export type props = { readonly onFocus?: onFocus }; export default $$default; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MyInput.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MyInput.tsx deleted file mode 100644 index 367c734d5..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MyInput.tsx +++ /dev/null @@ -1,7 +0,0 @@ -import type * as React from "react"; - -type Props = React.InputHTMLAttributes; - -const MyInput: React.FC = props => ; - -export default MyInput; diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MyMath.ts b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MyMath.affine similarity index 80% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MyMath.ts rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MyMath.affine index 9c4db3942..29522c4bf 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MyMath.ts +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MyMath.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module MyMath; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === export const round: (_: number) => number = Math.round; export const round2 = round; @@ -36,3 +44,5 @@ export type num = number; export type polyType = { x: T }; export default 34; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MyModule.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MyModule.gen.affine similarity index 50% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MyModule.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MyModule.gen.affine index 37a3a3bf4..a7936f06a 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MyModule.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MyModule.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module MyModule.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from MyModule.res by genType. */ /* eslint-disable */ @@ -8,3 +16,5 @@ import * as MyModuleJS from './MyModule.res.js'; export type t = number; export const add: (a:t, b:t) => t = MyModuleJS.add as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NestedModules.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NestedModules.gen.affine similarity index 87% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NestedModules.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NestedModules.gen.affine index ad6d2fa30..3076d079d 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NestedModules.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NestedModules.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module NestedModules.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from NestedModules.res by genType. */ /* eslint-disable */ @@ -39,3 +47,5 @@ export const Universe: { }; someString: string } = NestedModulesJS.Universe as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NestedModulesInSignature.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NestedModulesInSignature.gen.affine similarity index 61% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NestedModulesInSignature.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NestedModulesInSignature.gen.affine index 2e4577ba5..f39912345 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NestedModulesInSignature.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NestedModulesInSignature.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module NestedModulesInSignature.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from NestedModulesInSignature.resi by genType. */ /* eslint-disable */ @@ -8,3 +16,5 @@ import * as NestedModulesInSignatureJS from './NestedModulesInSignature.res.js'; export const Universe_theAnswer: number = NestedModulesInSignatureJS.Universe.theAnswer as any; export const Universe: { theAnswer: number } = NestedModulesInSignatureJS.Universe as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NestedVariants.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NestedVariants.gen.affine similarity index 90% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NestedVariants.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NestedVariants.gen.affine index 529c7e7fa..d21824ed0 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NestedVariants.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NestedVariants.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module NestedVariants.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from NestedVariants.res by genType. */ /* eslint-disable */ @@ -69,3 +77,5 @@ export const testBoxedBinary: (param:boxedBinary) => number = NestedVariantsJS.t export const testUnboxedBinary: (param:unboxedBinary) => number = NestedVariantsJS.testUnboxedBinary as any; export const testInline: (x:inline) => inline = NestedVariantsJS.testInline as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NonrecursiveTypes.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NonrecursiveTypes.gen.affine similarity index 60% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NonrecursiveTypes.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NonrecursiveTypes.gen.affine index 9842501a0..0347e6a15 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NonrecursiveTypes.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NonrecursiveTypes.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module NonrecursiveTypes.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from NonrecursiveTypes.res by genType. */ /* eslint-disable */ @@ -12,3 +20,5 @@ export type M_recursive = { readonly self: M_recursive }; export type M_mutualRecursive = { readonly a: M_a }; export type M_a = { readonly self: M_mutualRecursive }; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NumericPolyVar.gen.affine b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NumericPolyVar.gen.affine new file mode 100644 index 000000000..17a46a5ec --- /dev/null +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NumericPolyVar.gen.affine @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module NumericPolyVar.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from NumericPolyVar.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +export type t = 12 | 0 | "b"; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NumericPolyVar.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NumericPolyVar.gen.tsx deleted file mode 100644 index aa422e0c1..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NumericPolyVar.gen.tsx +++ /dev/null @@ -1,6 +0,0 @@ -/* TypeScript file generated from NumericPolyVar.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -export type t = 12 | 0 | "b"; diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Object.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Object.gen.affine similarity index 55% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Object.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Object.gen.affine index c8e3a5152..e279b4120 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Object.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Object.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Object.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Object.res by genType. */ /* eslint-disable */ @@ -6,3 +14,5 @@ export type someType = { readonly crop?: string; readonly "fp-z"?: string }; export type someType2 = { readonly crop: (undefined | string); readonly "fp-z": (undefined | string) }; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/OnClick2.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/OnClick2.gen.affine similarity index 64% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/OnClick2.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/OnClick2.gen.affine index a804d5483..cc37a9dda 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/OnClick2.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/OnClick2.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module OnClick2.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from OnClick2.res by genType. */ /* eslint-disable */ @@ -10,3 +18,5 @@ import type {Mouse_t as JsxEvent_Mouse_t} from '../src/shims/JsxEvent.shim'; export type props = { readonly onClick: onClick }; export const make: React.ComponentType<{ readonly onClick: (_1:JsxEvent_Mouse_t) => void }> = OnClick2JS.make as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Opaque.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Opaque.gen.affine similarity index 73% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Opaque.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Opaque.gen.affine index 5b300724d..b4931ddd5 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Opaque.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Opaque.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Opaque.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Opaque.res by genType. */ /* eslint-disable */ @@ -14,3 +22,5 @@ export type pair = [opaqueFromRecords, opaqueFromRecords]; export const noConversion: (x:opaqueFromRecords) => opaqueFromRecords = OpaqueJS.noConversion as any; export const testConvertNestedRecordFromOtherFile: (x:Records_business) => Records_business = OpaqueJS.testConvertNestedRecordFromOtherFile as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Records.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Records.gen.affine similarity index 93% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Records.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Records.gen.affine index f605dc6ec..03b9c4e48 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Records.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Records.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Records.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Records.res by genType. */ /* eslint-disable */ @@ -106,3 +114,5 @@ export const testMyObj2: (x:myObj) => myObj = RecordsJS.testMyObj2 as any; export const testMyRecBsAs: (x:myRecBsAs) => string[] = RecordsJS.testMyRecBsAs as any; export const testMyRecBsAs2: (x:myRecBsAs) => myRecBsAs = RecordsJS.testMyRecBsAs2 as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/References.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/References.gen.affine similarity index 82% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/References.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/References.gen.affine index ff722ab93..62602655d 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/References.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/References.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module References.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from References.res by genType. */ /* eslint-disable */ @@ -26,3 +34,5 @@ export const set: (_1:R_t, _2:T1) => void = ReferencesJS.set as any; export const destroysRefIdentity: (x:{ contents: requiresConversion }) => { contents: requiresConversion } = ReferencesJS.destroysRefIdentity as any; export const preserveRefIdentity: (x:R_t) => R_t = ReferencesJS.preserveRefIdentity as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Shadow.gen.affine b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Shadow.gen.affine new file mode 100644 index 000000000..56f3d3307 --- /dev/null +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Shadow.gen.affine @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Shadow.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from Shadow.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +import * as ShadowJS from './Shadow.res.js'; + +export const test: () => string = ShadowJS.test as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Shadow.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Shadow.gen.tsx deleted file mode 100644 index 4684ffd31..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Shadow.gen.tsx +++ /dev/null @@ -1,8 +0,0 @@ -/* TypeScript file generated from Shadow.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -import * as ShadowJS from './Shadow.res.js'; - -export const test: () => string = ShadowJS.test as any; diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestEmitInnerModules.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestEmitInnerModules.gen.affine similarity index 71% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestEmitInnerModules.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestEmitInnerModules.gen.affine index c90395cac..4079183af 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestEmitInnerModules.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestEmitInnerModules.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module TestEmitInnerModules.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from TestEmitInnerModules.res by genType. */ /* eslint-disable */ @@ -14,3 +22,5 @@ export const Outer_Medium_Inner_y: number = TestEmitInnerModulesJS.Outer.Medium. export const Inner: { x: number; y: string } = TestEmitInnerModulesJS.Inner as any; export const Outer: { Medium: { Inner: { y: number } } } = TestEmitInnerModulesJS.Outer as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestFirstClassModules.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestFirstClassModules.gen.affine similarity index 85% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestFirstClassModules.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestFirstClassModules.gen.affine index ee7c318a6..5464f7928 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestFirstClassModules.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestFirstClassModules.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module TestFirstClassModules.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from TestFirstClassModules.res by genType. */ /* eslint-disable */ @@ -20,3 +28,5 @@ export const convertInterface: (x:FirstClassModulesInterface_firstClassModule) = export const convertRecord: (x:FirstClassModulesInterface_record) => FirstClassModulesInterface_record = TestFirstClassModulesJS.convertRecord as any; export const convertFirstClassModuleWithTypeEquations: (x:{ readonly out: ((_1:T1) => T1); readonly Inner: { readonly inn: ((_1:T2) => T2) } }) => { readonly out: (_1:T1) => T1; readonly Inner: { readonly inn: (_1:T2) => T2 } } = TestFirstClassModulesJS.convertFirstClassModuleWithTypeEquations as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestImmutableArray.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestImmutableArray.gen.affine similarity index 57% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestImmutableArray.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestImmutableArray.gen.affine index 9037ddbe3..e38afb1f6 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestImmutableArray.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestImmutableArray.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module TestImmutableArray.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from TestImmutableArray.res by genType. */ /* eslint-disable */ @@ -6,3 +14,5 @@ import * as TestImmutableArrayJS from './TestImmutableArray.res.js'; export const testImmutableArrayGet: (arr:ReadonlyArray) => (undefined | T1) = TestImmutableArrayJS.testImmutableArrayGet as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestModuleAliases.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestModuleAliases.gen.affine similarity index 85% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestModuleAliases.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestModuleAliases.gen.affine index fa6bcf013..c19d7f8b5 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestModuleAliases.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestModuleAliases.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module TestModuleAliases.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from TestModuleAliases.res by genType. */ /* eslint-disable */ @@ -36,3 +44,5 @@ export const testInner1Expanded: (x:ModuleAliases2_InnerAlias_inner) => ModuleAl export const testInner2: (x:inner2) => inner2 = TestModuleAliasesJS.testInner2 as any; export const testInner2Expanded: (x:ModuleAliases2_Outer_Inner_inner) => ModuleAliases2_Outer_Inner_inner = TestModuleAliasesJS.testInner2Expanded as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestPromise.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestPromise.gen.affine similarity index 69% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestPromise.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestPromise.gen.affine index 3e7580c24..0dbc2ec59 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestPromise.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestPromise.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module TestPromise.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from TestPromise.res by genType. */ /* eslint-disable */ @@ -14,3 +22,5 @@ export type toPayload = { readonly result: string }; export const convert: (p:Promise) => Promise = TestPromiseJS.convert as any; export const barx: (x:(undefined | Promise<(undefined | string)>), _2:void) => boolean = TestPromiseJS.barx as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TransitiveType1.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TransitiveType1.gen.affine similarity index 69% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TransitiveType1.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TransitiveType1.gen.affine index 71698f9c8..723c18ef7 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TransitiveType1.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TransitiveType1.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module TransitiveType1.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from TransitiveType1.res by genType. */ /* eslint-disable */ @@ -12,3 +20,5 @@ import type {t2 as TransitiveType2_t2} from './TransitiveType2.gen'; export const convert: (x:TransitiveType2_t2) => TransitiveType2_t2 = TransitiveType1JS.convert as any; export const convertAlias: (x:TransitiveType2_t2Alias) => TransitiveType2_t2Alias = TransitiveType1JS.convertAlias as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TransitiveType2.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TransitiveType2.gen.affine similarity index 52% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TransitiveType2.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TransitiveType2.gen.affine index 02c9548b3..3a2028b39 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TransitiveType2.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TransitiveType2.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module TransitiveType2.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from TransitiveType2.res by genType. */ /* eslint-disable */ @@ -8,3 +16,5 @@ import type {t3 as TransitiveType3_t3} from './TransitiveType3.gen'; export type t2 = (undefined | TransitiveType3_t3); export type t2Alias = t2; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TransitiveType3.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TransitiveType3.gen.affine similarity index 56% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TransitiveType3.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TransitiveType3.gen.affine index 9fa08f9bd..be1d37475 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TransitiveType3.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TransitiveType3.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module TransitiveType3.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from TransitiveType3.res by genType. */ /* eslint-disable */ @@ -8,3 +16,5 @@ import * as TransitiveType3JS from './TransitiveType3.res.js'; export type t3 = { readonly i: number; readonly s: string }; export const convertT3: (x:t3) => t3 = TransitiveType3JS.convertT3 as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TypeNameSanitize.gen.affine b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TypeNameSanitize.gen.affine new file mode 100644 index 000000000..53921776e --- /dev/null +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TypeNameSanitize.gen.affine @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module TypeNameSanitize.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from TypeNameSanitize.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +export type t_ = number; + +export type M_t__ = number; + +export type pair = [t_, M_t__]; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TypeNameSanitize.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TypeNameSanitize.gen.tsx deleted file mode 100644 index 1d8672b5e..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TypeNameSanitize.gen.tsx +++ /dev/null @@ -1,10 +0,0 @@ -/* TypeScript file generated from TypeNameSanitize.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -export type t_ = number; - -export type M_t__ = number; - -export type pair = [t_, M_t__]; diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TypeParams1.gen.affine b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TypeParams1.gen.affine new file mode 100644 index 000000000..eafda8651 --- /dev/null +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TypeParams1.gen.affine @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module TypeParams1.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from TypeParams1.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +export type ocaml_array = a[]; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TypeParams1.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TypeParams1.gen.tsx deleted file mode 100644 index 9ec2bad96..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TypeParams1.gen.tsx +++ /dev/null @@ -1,6 +0,0 @@ -/* TypeScript file generated from TypeParams1.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -export type ocaml_array = a[]; diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TypeParams2.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TypeParams2.gen.affine similarity index 57% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TypeParams2.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TypeParams2.gen.affine index bef46e020..dfcd0afa8 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TypeParams2.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TypeParams2.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module TypeParams2.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from TypeParams2.res by genType. */ /* eslint-disable */ @@ -10,3 +18,5 @@ export type item = { readonly id: number }; export type items = TypeParams1_ocaml_array; export type items2 = item[]; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TypeParams3.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TypeParams3.gen.affine similarity index 67% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TypeParams3.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TypeParams3.gen.affine index 25d8ac0cb..5a32f93a8 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TypeParams3.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TypeParams3.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module TypeParams3.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from TypeParams3.res by genType. */ /* eslint-disable */ @@ -12,3 +20,5 @@ import type {items as TypeParams2_items} from './TypeParams2.gen'; export const test: (x:TypeParams2_items) => TypeParams2_items = TypeParams3JS.test as any; export const test2: (x:TypeParams2_items2) => TypeParams2_items2 = TypeParams3JS.test2 as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Unboxed.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Unboxed.gen.affine similarity index 72% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Unboxed.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Unboxed.gen.affine index 43d5469d4..13d45c6a7 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Unboxed.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Unboxed.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Unboxed.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Unboxed.res by genType. */ /* eslint-disable */ @@ -26,3 +34,5 @@ export const a: tabIndex = UnboxedJS.a as any; export const b: tabIndex = UnboxedJS.b as any; export const zero: 0 = UnboxedJS.zero as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Uncurried.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Uncurried.gen.affine similarity index 86% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Uncurried.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Uncurried.gen.affine index 69bc50070..d31531ff1 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Uncurried.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Uncurried.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Uncurried.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Uncurried.res by genType. */ /* eslint-disable */ @@ -40,3 +48,5 @@ export const sumU2: (n:number) => (_1:number) => void = UncurriedJS.sumU2 as any export const sumCurried: (n:number) => (_1:number) => void = UncurriedJS.sumCurried as any; export const sumLblCurried: (s:string, n:number) => (m:number) => void = UncurriedJS.sumLblCurried as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Usage.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Usage.gen.affine similarity index 55% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Usage.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Usage.gen.affine index 551e6df22..52ea9695e 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Usage.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Usage.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Usage.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Usage.res by genType. */ /* eslint-disable */ @@ -8,3 +16,5 @@ import * as UsageJS from './Usage.res.js'; import type {MyModuleAlias_t as Wrapper_MyModuleAlias_t} from './Wrapper.gen'; export const b: Wrapper_MyModuleAlias_t = UsageJS.b as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/UseImportJsValue.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/UseImportJsValue.gen.affine similarity index 72% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/UseImportJsValue.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/UseImportJsValue.gen.affine index 0fad6f207..3e220029f 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/UseImportJsValue.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/UseImportJsValue.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module UseImportJsValue.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from UseImportJsValue.res by genType. */ /* eslint-disable */ @@ -12,3 +20,5 @@ import type {stringFunction as ImportJsValue_stringFunction} from './ImportJsVal export const useGetProp: (x:ImportJsValue_AbsoluteValue_t) => number = UseImportJsValueJS.useGetProp as any; export const useTypeImportedInOtherModule: (x:ImportJsValue_stringFunction) => ImportJsValue_stringFunction = UseImportJsValueJS.useTypeImportedInOtherModule as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Variants.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Variants.gen.affine similarity index 91% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Variants.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Variants.gen.affine index 3b2b65d60..a92b8a461 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Variants.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Variants.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Variants.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Variants.res by genType. */ /* eslint-disable */ @@ -82,3 +90,5 @@ export const restResult1: (x:result1) => result1 = export const restResult2: (x:result2) => result2 = VariantsJS.restResult2 as any; export const restResult3: (x:result3) => result3 = VariantsJS.restResult3 as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/VariantsWithPayload.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/VariantsWithPayload.gen.affine similarity index 88% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/VariantsWithPayload.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/VariantsWithPayload.gen.affine index 4cb3a20ba..843346b09 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/VariantsWithPayload.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/VariantsWithPayload.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module VariantsWithPayload.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from VariantsWithPayload.res by genType. */ /* eslint-disable */ @@ -50,3 +58,5 @@ export const printVariantWithPayloads: (x:variantWithPayloads) => void = Variant export const testVariant1Int: (x:variant1Int) => variant1Int = VariantsWithPayloadJS.testVariant1Int as any; export const testVariant1Object: (x:variant1Object) => variant1Object = VariantsWithPayloadJS.testVariant1Object as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Warnings.gen.affine b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Warnings.gen.affine new file mode 100644 index 000000000..af1bbcaa1 --- /dev/null +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Warnings.gen.affine @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Warnings.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from Warnings.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +import * as WarningsJS from './Warnings.res.js'; + +export const ddd: number = WarningsJS.x as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Warnings.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Warnings.gen.tsx deleted file mode 100644 index 9fd5e1d21..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Warnings.gen.tsx +++ /dev/null @@ -1,8 +0,0 @@ -/* TypeScript file generated from Warnings.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -import * as WarningsJS from './Warnings.res.js'; - -export const ddd: number = WarningsJS.x as any; diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Wrapper.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Wrapper.gen.affine similarity index 66% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Wrapper.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Wrapper.gen.affine index d2baeb44c..d3d6f3b6c 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Wrapper.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Wrapper.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Wrapper.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Wrapper.res by genType. */ /* eslint-disable */ @@ -10,3 +18,5 @@ export type MyModuleAlias_t = number; export const MyModuleAlias_add: (_1:MyModuleAlias_t, _2:MyModuleAlias_t) => MyModuleAlias_t = WrapperJS.MyModuleAlias.add as any; export const MyModuleAlias: { add: (_1:MyModuleAlias_t, _2:MyModuleAlias_t) => MyModuleAlias_t } = WrapperJS.MyModuleAlias as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/counter.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/counter.gen.affine similarity index 52% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/counter.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/counter.gen.affine index 835e5cb89..7b5c8f137 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/counter.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/counter.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module counter.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from counter.res by genType. */ /* eslint-disable */ @@ -8,3 +16,5 @@ import * as counterJS from './counter.res.js'; import type {aa as Machine_aa} from './Machine.gen'; export const b: Machine_aa = counterJS.b as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/hookExample.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/hookExample.affine similarity index 80% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/hookExample.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/hookExample.affine index b04a357e0..a4d1c80cd 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/hookExample.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/hookExample.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module hookExample; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === import * as React from "react"; export const foo = (person: { readonly name: string; readonly age: number }) => @@ -39,3 +47,5 @@ class AsClassComponent extends React.PureComponent { export const makeRenamed = AsClassComponent; export default make; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/index.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/index.affine similarity index 94% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/index.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/index.affine index 1fdcd83b2..47e0e2a5a 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/index.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/index.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module index; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === import type * as React from "react"; import * as ReactDOM from "react-dom"; import App from "./App.tsx"; @@ -134,3 +142,5 @@ const signedMessage = DocStrings.signMessage("hello", 42); consoleLog("signedMessage:", signedMessage); export default make; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/location/location.gen.affine b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/location/location.gen.affine new file mode 100644 index 000000000..0bb222928 --- /dev/null +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/location/location.gen.affine @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module location.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from location.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +export type t = { readonly id: string; readonly name: string }; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/location/location.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/location/location.gen.tsx deleted file mode 100644 index d5a66cf1e..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/location/location.gen.tsx +++ /dev/null @@ -1,6 +0,0 @@ -/* TypeScript file generated from location.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -export type t = { readonly id: string; readonly name: string }; diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/nested/Tuples.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/nested/Tuples.gen.affine similarity index 84% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/nested/Tuples.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/nested/Tuples.gen.affine index 186aa8abc..02a85ffb0 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/nested/Tuples.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/nested/Tuples.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Tuples.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Tuples.res by genType. */ /* eslint-disable */ @@ -30,3 +38,5 @@ export const getFirstName: (param:couple) => string = TuplesJS.getFirstName as a export const marry: (first:person, second:person) => couple = TuplesJS.marry as any; export const changeSecondAge: (param:couple) => couple = TuplesJS.changeSecondAge as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/nested/Types.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/nested/Types.gen.affine similarity index 94% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/nested/Types.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/nested/Types.gen.affine index cda2b782d..1651f1913 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/nested/Types.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/nested/Types.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Types.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Types.res by genType. */ /* eslint-disable */ @@ -133,3 +141,5 @@ export const testInstantiateTypeParameter: (x:instantiateTypeParameter) => insta export const currentTime: Date = TypesJS.currentTime as any; export const optFunction: (undefined | (() => number)) = TypesJS.optFunction as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/react-app-env.d.affine b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/react-app-env.d.affine new file mode 100644 index 000000000..887016c74 --- /dev/null +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/react-app-env.d.affine @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module react-app-env.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/// + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/react-app-env.d.ts b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/react-app-env.d.ts deleted file mode 100644 index 6431bc5fc..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/react-app-env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/Belt.shim.affine b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/Belt.shim.affine new file mode 100644 index 000000000..9f73ace86 --- /dev/null +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/Belt.shim.affine @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Belt.shim; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +import type { list } from "./RescriptPervasives.shim"; + +export type List_t = list; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/Belt.shim.ts b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/Belt.shim.ts deleted file mode 100644 index 18897a9b0..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/Belt.shim.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { list } from "./RescriptPervasives.shim"; - -export type List_t = list; diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/Js.shim.affine b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/Js.shim.affine new file mode 100644 index 000000000..ea775677c --- /dev/null +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/Js.shim.affine @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Js.shim; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +export type Json_t = unknown; + +export type t = unknown; + +export type TypedArray2_Uint8Array_t = Uint8Array; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/Js.shim.ts b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/Js.shim.ts deleted file mode 100644 index 7c735117f..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/Js.shim.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type Json_t = unknown; - -export type t = unknown; - -export type TypedArray2_Uint8Array_t = Uint8Array; diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/Jsx.shim.affine b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/Jsx.shim.affine new file mode 100644 index 000000000..f6d070791 --- /dev/null +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/Jsx.shim.affine @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Jsx.shim; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +import type { ReactElement } from "react"; + +export type element = ReactElement; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/Jsx.shim.ts b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/Jsx.shim.ts deleted file mode 100644 index 236aca55a..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/Jsx.shim.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ReactElement } from "react"; - -export type element = ReactElement; diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/JsxEvent.shim.ts b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/JsxEvent.shim.affine similarity index 81% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/JsxEvent.shim.ts rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/JsxEvent.shim.affine index c3b44ff02..b7c85262c 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/JsxEvent.shim.ts +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/JsxEvent.shim.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module JsxEvent.shim; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === export abstract class Animation_t { protected opaque: unknown; } @@ -59,3 +67,5 @@ export type inputFocusEvent = React.FocusEvent; export abstract class Mouse_t { protected opaque: unknown; } + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/RescriptPervasives.shim.ts b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/RescriptPervasives.shim.affine similarity index 68% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/RescriptPervasives.shim.ts rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/RescriptPervasives.shim.affine index af1e6dc7e..d9e69a19a 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/RescriptPervasives.shim.ts +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/RescriptPervasives.shim.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module RescriptPervasives.shim; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === const $$Array = require("bs-platform/lib/js/array"); export abstract class EmptyList { @@ -19,3 +27,5 @@ export function cons(itm: T, lst: list): list { export const emptyList: EmptyList = /* [] */ 0 as any; export const fromArray = $$Array.to_list; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/strange_file_names/404.gen.affine b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/strange_file_names/404.gen.affine new file mode 100644 index 000000000..b7c79e53a --- /dev/null +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/strange_file_names/404.gen.affine @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module 404.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from 404.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +import * as _404JS from './404.res.js'; + +export const x: number = _404JS.x as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/strange_file_names/404.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/strange_file_names/404.gen.tsx deleted file mode 100644 index 71445c182..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/strange_file_names/404.gen.tsx +++ /dev/null @@ -1,8 +0,0 @@ -/* TypeScript file generated from 404.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -import * as _404JS from './404.res.js'; - -export const x: number = _404JS.x as any; diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/strange_file_names/AppModal.web.gen.affine b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/strange_file_names/AppModal.web.gen.affine new file mode 100644 index 000000000..74e9cb309 --- /dev/null +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/strange_file_names/AppModal.web.gen.affine @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module AppModal.web.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from AppModal.web.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +import * as AppModal_webJS from './AppModal.web.res.js'; + +export const x: number = AppModal_webJS.x as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/strange_file_names/AppModal.web.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/strange_file_names/AppModal.web.gen.tsx deleted file mode 100644 index 2da19d83e..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/strange_file_names/AppModal.web.gen.tsx +++ /dev/null @@ -1,8 +0,0 @@ -/* TypeScript file generated from AppModal.web.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -import * as AppModal_webJS from './AppModal.web.res.js'; - -export const x: number = AppModal_webJS.x as any; diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/strange_file_names/_under.gen.affine b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/strange_file_names/_under.gen.affine new file mode 100644 index 000000000..d11f3d79f --- /dev/null +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/strange_file_names/_under.gen.affine @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module _under.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from _under.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +import * as _underJS from './_under.res.js'; + +export const x: number = _underJS.x as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/strange_file_names/_under.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/strange_file_names/_under.gen.tsx deleted file mode 100644 index 334ed855f..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/strange_file_names/_under.gen.tsx +++ /dev/null @@ -1,8 +0,0 @@ -/* TypeScript file generated from _under.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -import * as _underJS from './_under.res.js'; - -export const x: number = _underJS.x as any; diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/strange_file_names/with_underscore.gen.affine b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/strange_file_names/with_underscore.gen.affine new file mode 100644 index 000000000..171b0ac8a --- /dev/null +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/strange_file_names/with_underscore.gen.affine @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module with_underscore.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from with_underscore.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +import * as with_underscoreJS from './with_underscore.res.js'; + +export const x: number = with_underscoreJS.x as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/strange_file_names/with_underscore.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/strange_file_names/with_underscore.gen.tsx deleted file mode 100644 index f56f140e0..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/strange_file_names/with_underscore.gen.tsx +++ /dev/null @@ -1,8 +0,0 @@ -/* TypeScript file generated from with_underscore.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -import * as with_underscoreJS from './with_underscore.res.js'; - -export const x: number = with_underscoreJS.x as any; diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/testReferences.ts b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/testReferences.affine similarity index 55% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/testReferences.ts rename to rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/testReferences.affine index 4f48449ba..2e5b11a2d 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/testReferences.ts +++ b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/testReferences.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module testReferences; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === import * as References from "./References.gen"; const r: { contents: number } = { contents: 34 }; @@ -11,3 +19,5 @@ const ar: References.t = References.make(34); References.set(ar, 42); export const an: number = References.get(ar); + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/tsconfig.json b/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/tsconfig.json deleted file mode 100644 index 589016b98..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/tsconfig.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "compilerOptions": { - "module": "ESNext", - "moduleResolution": "Node", - "lib": ["DOM", "DOM.Iterable", "ESNext"], - "jsx": "react-jsx", - "strict": true, - "skipLibCheck": true, - "allowJs": true, - "allowImportingTsExtensions": true, - "noEmit": true - }, - "include": ["src"] -} diff --git a/rescript-ecosystem/rescript/tests/tests/src/variantsMatching.gen.tsx b/rescript-ecosystem/packages/core/compiler-source/tests/tests/src/variantsMatching.gen.affine similarity index 70% rename from rescript-ecosystem/rescript/tests/tests/src/variantsMatching.gen.tsx rename to rescript-ecosystem/packages/core/compiler-source/tests/tests/src/variantsMatching.gen.affine index b1344de69..f4984c3ac 100644 --- a/rescript-ecosystem/rescript/tests/tests/src/variantsMatching.gen.tsx +++ b/rescript-ecosystem/packages/core/compiler-source/tests/tests/src/variantsMatching.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module variantsMatching.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from variantsMatching.res by genType. */ /* eslint-disable */ @@ -18,3 +26,5 @@ export type MyNullableExtended_t = null | undefined | "WhyNotAnotherOne" | a; export type UntaggedWithBool_t = string | number | boolean | string; export type UntaggedWithTuple_t = string | [number, number, string]; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tsconfig.json b/rescript-ecosystem/packages/core/compiler-source/tsconfig.json deleted file mode 100644 index b23a0e8b4..000000000 --- a/rescript-ecosystem/packages/core/compiler-source/tsconfig.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2022", - "module": "NodeNext", - "moduleResolution": "NodeNext", - "allowJs": true, - "resolveJsonModule": true, - "strict": true, - "strictNullChecks": true, - "noImplicitAny": true, - "noEmit": true, - "skipLibCheck": true - }, - "include": [ - "cli/*", - "lib/*", - "lib_dev/*", - "scripts/*", - "packages/**", - "tests/**/input.js", - ".github/workflows/*.js", - "yarn.config.cjs", - "package.json" - ], - "exclude": ["*.res.js", "*.res.mjs"] -} diff --git a/rescript-ecosystem/packages/core/env/deno.json b/rescript-ecosystem/packages/core/env/deno.json deleted file mode 100644 index 30c17771f..000000000 --- a/rescript-ecosystem/packages/core/env/deno.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "@hyperpolymath/rescript-env", - "version": "0.1.0", - "exports": "./src/Env.res.js", - "tasks": { - "build": "rescript build", - "clean": "rescript clean", - "dev": "rescript build -w" - }, - "compilerOptions": { - "lib": ["deno.ns", "deno.unstable"] - } -} diff --git a/rescript-ecosystem/packages/core/poly-core/deno.json b/rescript-ecosystem/packages/core/poly-core/deno.json deleted file mode 100644 index 6dbce662d..000000000 --- a/rescript-ecosystem/packages/core/poly-core/deno.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "@hyperpolymath/rescript-poly-core", - "version": "0.1.0", - "exports": "./src/PolyCore.res.js", - "tasks": { - "build": "rescript build", - "clean": "rescript clean", - "dev": "rescript build -w", - "test": "deno test --allow-all tests/" - }, - "compilerOptions": { - "lib": ["deno.ns", "deno.unstable"] - } -} diff --git a/rescript-ecosystem/packages/core/runtime-tools/bin/rrt.ts b/rescript-ecosystem/packages/core/runtime-tools/bin/rrt.affine similarity index 97% rename from rescript-ecosystem/packages/core/runtime-tools/bin/rrt.ts rename to rescript-ecosystem/packages/core/runtime-tools/bin/rrt.affine index fdd908362..44eaa9d84 100644 --- a/rescript-ecosystem/packages/core/runtime-tools/bin/rrt.ts +++ b/rescript-ecosystem/packages/core/runtime-tools/bin/rrt.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module rrt; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === #!/usr/bin/env -S deno run --allow-read --allow-write --allow-run --allow-net --allow-env // SPDX-License-Identifier: MPL-2.0 // rrt - ReScript Runtime Tools CLI @@ -293,3 +301,5 @@ async function main() { } main(); + +==================================== */ diff --git a/rescript-ecosystem/packages/core/runtime-tools/deno.json b/rescript-ecosystem/packages/core/runtime-tools/deno.json deleted file mode 100644 index 13d34215f..000000000 --- a/rescript-ecosystem/packages/core/runtime-tools/deno.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json", - "name": "@hyperpolymath/rescript-runtime-tools", - "version": "0.1.0", - "exports": "./src/mod.ts", - "tasks": { - "dev": "deno run --allow-all bin/rrt.ts dev", - "build": "deno run --allow-all bin/rrt.ts build", - "build:prod": "deno run --allow-all bin/rrt.ts build --prod", - "test": "deno run --allow-all bin/rrt.ts test", - "bench": "deno run --allow-all bin/rrt.ts bench", - "fmt": "deno run --allow-all bin/rrt.ts fmt", - "clean": "deno run --allow-all bin/rrt.ts clean", - "info": "deno run --allow-all bin/rrt.ts info", - "rescript": "^12.0.0", - "rescript:watch": "deno run -A npm:rescript build -w", - "rescript:clean": "deno run -A npm:rescript clean" - }, - "nodeModulesDir": "none", - "compilerOptions": { - "strict": true, - "lib": ["deno.window", "deno.unstable"] - }, - "fmt": { - "useTabs": false, - "lineWidth": 100, - "indentWidth": 2, - "singleQuote": false, - "proseWrap": "preserve" - }, - "lint": { - "rules": { - "tags": ["recommended"] - } - }, - "imports": { - "@std/assert": "jsr:@std/assert@1", - "@std/testing": "jsr:@std/testing@1", - "@std/fs": "jsr:@std/fs@1", - "@std/path": "jsr:@std/path@1" - } -} diff --git a/rescript-ecosystem/packages/core/runtime-tools/tests/detect_test.ts b/rescript-ecosystem/packages/core/runtime-tools/tests/detect_test.affine similarity index 85% rename from rescript-ecosystem/packages/core/runtime-tools/tests/detect_test.ts rename to rescript-ecosystem/packages/core/runtime-tools/tests/detect_test.affine index d8f931a4e..e3ea230f4 100644 --- a/rescript-ecosystem/packages/core/runtime-tools/tests/detect_test.ts +++ b/rescript-ecosystem/packages/core/runtime-tools/tests/detect_test.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module detect_test; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Tests for runtime detection import { assertEquals, assertExists } from "@std/assert"; @@ -35,3 +43,5 @@ Deno.test("capabilities - WebAssembly available", () => { const hasWasm = typeof WebAssembly !== "undefined"; assertEquals(hasWasm, true, "WebAssembly should be available"); }); + +==================================== */ diff --git a/rescript-ecosystem/packages/ffi/alib/deno.json b/rescript-ecosystem/packages/ffi/alib/deno.json deleted file mode 100644 index 7597245b8..000000000 --- a/rescript-ecosystem/packages/ffi/alib/deno.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "@hyperpolymath/rescript-alib", - "version": "0.1.0-alpha.1", - "exports": { - ".": "./src/Common/Alib_String.res.js", - "./Common/*": "./src/Common/*.res.js", - "./Specific/*": "./src/Specific/*.res.js", - "./Compat/*": "./src/Compat/*.res.js" - }, - "imports": { - "@alib/common": "./src/Common/", - "@alib/specific": "./src/Specific/", - "@alib/compat": "./src/Compat/" - }, - "tasks": { - "res:build": "rescript build -with-deps", - "res:watch": "rescript build -w", - "res:clean": "rescript clean", - "test": "deno test --allow-read --allow-env test/", - "test:unit": "deno test --allow-read test/unit/", - "test:integration": "deno test --allow-read test/integration/", - "bench": "deno bench --allow-read test/benchmark/", - "check": "deno task res:build && deno task test", - "check:full": "deno task res:clean && deno task res:build && deno task test && deno task bench", - "check:security": "deno task res:build && deno check src/**/*.res.js", - "bundle": "deno task res:build && deno bundle src/Common/Alib_String.res.js dist/alib-string.bundle.js", - "bundle:check": "deno task bundle && deno check dist/alib-string.bundle.js", - "compile:validate": "deno task res:build && deno check --remote src/**/*.res.js && deno cache --reload --lock=deno.lock --lock-write src/**/*.res.js", - "format": "deno fmt && rescript format -all", - "lint": "deno lint", - "docs": "deno task res:build && typedoc --out docs/api src/" - }, - "fmt": { - "files": { - "include": ["test/", "docs/"], - "exclude": ["**/*.res.js", "node_modules/", "lib/"] - } - }, - "lint": { - "files": { - "include": ["test/", "docs/"], - "exclude": ["**/*.res.js", "node_modules/", "lib/"] - } - }, - "test": { - "files": { - "include": ["test/**/*_test.js", "test/**/*_test.ts"] - } - }, - "compilerOptions": { - "lib": ["deno.window"], - "strict": true - } -} diff --git a/rescript-ecosystem/packages/ffi/wasm-runtime/deno.json b/rescript-ecosystem/packages/ffi/wasm-runtime/deno.json deleted file mode 100644 index 4ba1e972e..000000000 --- a/rescript-ecosystem/packages/ffi/wasm-runtime/deno.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "tasks": { - "dev": "deno run --watch mod.ts", - "test": "deno test", - "lint": "deno lint", - "fmt": "deno fmt" - }, - "compilerOptions": { "strict": true } -} diff --git a/rescript-ecosystem/packages/ffi/zig-ffi/deno.json b/rescript-ecosystem/packages/ffi/zig-ffi/deno.json deleted file mode 100644 index f82841496..000000000 --- a/rescript-ecosystem/packages/ffi/zig-ffi/deno.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "@hyperpolymath/rescript-zig-ffi", - "version": "0.1.0", - "license": "PMPL-1.0-or-later", - "exports": { - ".": "./src/ZigFfi.res.js" - }, - "tasks": { - "build:rescript": "npx rescript", - "build:zig": "cd zig-lib && zig build -Doptimize=ReleaseFast", - "build": "deno task build:rescript && deno task build:zig", - "test:zig": "cd zig-lib && zig build test", - "test": "deno task test:zig" - } -} diff --git a/rescript-ecosystem/packages/tooling/create-poly/deno.json b/rescript-ecosystem/packages/tooling/create-poly/deno.json deleted file mode 100644 index 00d8b5efd..000000000 --- a/rescript-ecosystem/packages/tooling/create-poly/deno.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "@hyperpolymath/rescript-create-poly", - "version": "0.1.0", - "exports": "./src/PolyCore.res.js", - "tasks": { - "build": "rescript build", - "clean": "rescript clean", - "dev": "rescript build -w", - "test": "deno test --allow-all tests/" - }, - "compilerOptions": { - "lib": ["deno.ns", "deno.unstable"] - } -} diff --git a/rescript-ecosystem/packages/tooling/evangeliser/deno.json b/rescript-ecosystem/packages/tooling/evangeliser/deno.json deleted file mode 100644 index 6fca1f02a..000000000 --- a/rescript-ecosystem/packages/tooling/evangeliser/deno.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json", - "name": "@hyperpolymath/rescript-evangeliser", - "version": "0.1.0", - "license": "PMPL-1.0-or-later", - "tasks": { - "build": "deno run -A npm:rescript build", - "build:watch": "deno run -A npm:rescript build -w", - "clean": "deno run -A npm:rescript clean", - "lint": "deno lint", - "fmt": "deno fmt", - "test": "deno run --allow-read --allow-env test/run_all.js", - "pre-commit": "deno task lint && deno task fmt --check" - }, - "imports": { - "rescript": "npm:rescript@^12.0.0", - "@rescript/core": "npm:@rescript/core@^1.6.1", - "@rescript/runtime/": "npm:/@rescript/runtime@12.2.0/" - }, - "fmt": { - "useTabs": false, - "lineWidth": 100, - "indentWidth": 2, - "semiColons": false, - "singleQuote": false, - "proseWrap": "preserve", - "include": ["src/"] - }, - "lint": { - "rules": { - "tags": ["recommended"] - } - }, - "nodeModulesDir": "auto" -} diff --git a/rescript-ecosystem/packages/tooling/greasy-rescripter/deno.json b/rescript-ecosystem/packages/tooling/greasy-rescripter/deno.json deleted file mode 100644 index 215f66805..000000000 --- a/rescript-ecosystem/packages/tooling/greasy-rescripter/deno.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "tasks": { - "res:build": "deno run -A npm:rescript build", - "res:clean": "deno run -A npm:rescript clean" - }, - "nodeModulesDir": "auto" -} diff --git a/rescript-ecosystem/packages/web/bridge-web/deno.json b/rescript-ecosystem/packages/web/bridge-web/deno.json deleted file mode 100644 index 5e2b74c1a..000000000 --- a/rescript-ecosystem/packages/web/bridge-web/deno.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json", - "tasks": { - "build": "deno run -A npm:rescript@11.1.4 build", - "clean": "deno run -A npm:rescript@11.1.4 clean", - "test": "deno test --allow-read tests/", - "check": "deno task build && deno task test" - }, - "imports": { - "rescript": "^12.0.0" - } -} diff --git a/rescript-ecosystem/packages/web/dom-mounter/deno.json b/rescript-ecosystem/packages/web/dom-mounter/deno.json deleted file mode 100644 index a215ccfc6..000000000 --- a/rescript-ecosystem/packages/web/dom-mounter/deno.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "tasks": { - "build": "deno run -A npm:rescript", - "clean": "deno run -A npm:rescript clean", - "watch": "deno run -A npm:rescript -w", - "test": "deno test --allow-all" - }, - "imports": { - "rescript": "^12.0.0", - "@rescript/core": "npm:@rescript/core@^1.6.0", - "proven/": "../proven/bindings/rescript/src/" - }, - "compilerOptions": { - "allowJs": true, - "checkJs": false - } -} \ No newline at end of file diff --git a/rescript-ecosystem/rescript-dom-mounter/tests/safe_dom_high_assurance.test.ts b/rescript-ecosystem/packages/web/dom-mounter/tests/safe_dom_high_assurance.test.affine similarity index 86% rename from rescript-ecosystem/rescript-dom-mounter/tests/safe_dom_high_assurance.test.ts rename to rescript-ecosystem/packages/web/dom-mounter/tests/safe_dom_high_assurance.test.affine index bd91bebc9..556257e2a 100644 --- a/rescript-ecosystem/rescript-dom-mounter/tests/safe_dom_high_assurance.test.ts +++ b/rescript-ecosystem/packages/web/dom-mounter/tests/safe_dom_high_assurance.test.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module safe_dom_high_assurance.test; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === import { assertEquals, assert } from "https://deno.land/std@0.211.0/testing/asserts.ts"; import * as SafeDOM from "../src/SafeDOM.res.js"; @@ -41,3 +49,5 @@ Deno.test("mount tracer records success for valid selectors", () => { const entries = MountTracer.entries(); assert(entries[entries.length - 1].detail.includes("selector valid")); }); + +==================================== */ diff --git a/rescript-ecosystem/packages/web/http-server/deno.json b/rescript-ecosystem/packages/web/http-server/deno.json deleted file mode 100644 index cf9530830..000000000 --- a/rescript-ecosystem/packages/web/http-server/deno.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "@hyperpolymath/rescript-http-server", - "version": "0.1.0", - "exports": "./src/HttpServer.res.js", - "tasks": { - "build": "rescript build", - "clean": "rescript clean", - "dev": "rescript build -w" - }, - "compilerOptions": { - "lib": ["deno.ns", "deno.unstable"] - } -} diff --git a/rescript-ecosystem/packages/web/tea/deno.json b/rescript-ecosystem/packages/web/tea/deno.json deleted file mode 100644 index 0d3bc2247..000000000 --- a/rescript-ecosystem/packages/web/tea/deno.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "@hyperpolymath/rescript-tea", - "version": "0.1.0", - "exports": "./src/Tea.res", - "tasks": { - "build": "deno run -A npm:rescript", - "clean": "deno run -A npm:rescript clean", - "watch": "deno run -A npm:rescript -w", - "test": "deno test --allow-read lib/es6/test/", - "dev": "rescript -w" - }, - "imports": { - "rescript": "^12.0.0", - "@rescript/core": "npm:@rescript/core@^1.7.0", - "@rescript/react": "npm:@rescript/react@^0.14.0", - "react": "npm:react@^19.0.0", - "react-dom": "npm:react-dom@^19.0.0", - "proven/": "../proven/bindings/rescript/src/", - "@proven/rescript-bindings": "npm:@proven/rescript-bindings@file:../../proven/bindings/rescript" - }, - "compilerOptions": { - "allowJs": true, - "checkJs": false, - "jsx": "react-jsx" - } -} \ No newline at end of file diff --git a/rescript-ecosystem/packages/web/websocket/deno.json b/rescript-ecosystem/packages/web/websocket/deno.json deleted file mode 100644 index 89eff40a6..000000000 --- a/rescript-ecosystem/packages/web/websocket/deno.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "@hyperpolymath/rescript-websocket", - "version": "0.1.0", - "exports": "./src/WebSocket.res.js", - "tasks": { - "build": "rescript build", - "clean": "rescript clean", - "dev": "rescript build -w" - }, - "compilerOptions": { - "lib": ["deno.ns", "deno.unstable"] - } -} diff --git a/rescript-ecosystem/rescript-deno-starter/deno.json b/rescript-ecosystem/rescript-deno-starter/deno.json deleted file mode 100644 index a36c0edc1..000000000 --- a/rescript-ecosystem/rescript-deno-starter/deno.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "name": "@hyperpolymath/rescript-deno", - "version": "1.0.0", - "exports": "./src/cli.js", - "tasks": { - "start": "deno run --allow-run --allow-read --allow-write --allow-env --allow-net src/cli.js" - } -} diff --git a/rescript-ecosystem/rescript-dom-mounter/deno.json b/rescript-ecosystem/rescript-dom-mounter/deno.json deleted file mode 100644 index a215ccfc6..000000000 --- a/rescript-ecosystem/rescript-dom-mounter/deno.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "tasks": { - "build": "deno run -A npm:rescript", - "clean": "deno run -A npm:rescript clean", - "watch": "deno run -A npm:rescript -w", - "test": "deno test --allow-all" - }, - "imports": { - "rescript": "^12.0.0", - "@rescript/core": "npm:@rescript/core@^1.6.0", - "proven/": "../proven/bindings/rescript/src/" - }, - "compilerOptions": { - "allowJs": true, - "checkJs": false - } -} \ No newline at end of file diff --git a/rescript-ecosystem/packages/web/dom-mounter/tests/safe_dom_high_assurance.test.ts b/rescript-ecosystem/rescript-dom-mounter/tests/safe_dom_high_assurance.test.affine similarity index 86% rename from rescript-ecosystem/packages/web/dom-mounter/tests/safe_dom_high_assurance.test.ts rename to rescript-ecosystem/rescript-dom-mounter/tests/safe_dom_high_assurance.test.affine index bd91bebc9..556257e2a 100644 --- a/rescript-ecosystem/packages/web/dom-mounter/tests/safe_dom_high_assurance.test.ts +++ b/rescript-ecosystem/rescript-dom-mounter/tests/safe_dom_high_assurance.test.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module safe_dom_high_assurance.test; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === import { assertEquals, assert } from "https://deno.land/std@0.211.0/testing/asserts.ts"; import * as SafeDOM from "../src/SafeDOM.res.js"; @@ -41,3 +49,5 @@ Deno.test("mount tracer records success for valid selectors", () => { const entries = MountTracer.entries(); assert(entries[entries.length - 1].detail.includes("selector valid")); }); + +==================================== */ diff --git a/rescript-ecosystem/rescript-evangeliser/deno.json b/rescript-ecosystem/rescript-evangeliser/deno.json deleted file mode 100644 index 9a201f2c4..000000000 --- a/rescript-ecosystem/rescript-evangeliser/deno.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json", - "name": "@hyperpolymath/nextgen-languages-evangeliser", - "version": "0.6.0-alpha", - "license": "PMPL-1.0-or-later", - "tasks": { - "build": "deno run -A npm:rescript build", - "build:watch": "deno run -A npm:rescript build -w", - "clean": "deno run -A npm:rescript clean", - "lint": "deno lint", - "fmt": "deno fmt", - "test": "deno run --allow-read --allow-env test/run_all.js", - "pre-commit": "deno task lint && deno task fmt --check" - }, - "imports": { - "rescript": "npm:rescript@^12.0.0", - "@rescript/core": "npm:@rescript/core@^1.6.1", - "@rescript/runtime/": "npm:/@rescript/runtime@12.2.0/" - }, - "fmt": { - "useTabs": false, - "lineWidth": 100, - "indentWidth": 2, - "semiColons": false, - "singleQuote": false, - "proseWrap": "preserve", - "include": ["src/"] - }, - "lint": { - "rules": { - "tags": ["recommended"] - } - }, - "nodeModulesDir": "auto" -} diff --git a/rescript-ecosystem/rescript-tea/deno.json b/rescript-ecosystem/rescript-tea/deno.json deleted file mode 100644 index 25e027f27..000000000 --- a/rescript-ecosystem/rescript-tea/deno.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "nodeModulesDir": "auto", - "tasks": { - "res:build": "deno run -A npm:rescript build", - "res:clean": "deno run -A npm:rescript clean", - "res:watch": "deno run -A npm:rescript build -w", - "test": "deno test tests/ --allow-all --no-check" - }, - "imports": { - "rescript": "npm:rescript@^12.0.0", - "@rescript/core": "npm:@rescript/core@^1.0.0", - "@rescript/runtime": "npm:@rescript/runtime@^12.0.0" - } -} diff --git a/rescript-ecosystem/rescript-vite/deno.json b/rescript-ecosystem/rescript-vite/deno.json deleted file mode 100644 index df2f42b23..000000000 --- a/rescript-ecosystem/rescript-vite/deno.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "tasks": { - "res:build": "deno run -A npm:rescript build", - "res:clean": "deno run -A npm:rescript clean", - "res:watch": "deno run -A npm:rescript build -w", - "test": "deno test --no-check --allow-all tests/" - }, - "nodeModulesDir": "auto", - "imports": { - "rescript": "npm:rescript@^12.0.0", - "@rescript/core": "npm:@rescript/core@^1.6.0", - "@rescript/runtime": "npm:@rescript/runtime@^12.0.0" - } -} diff --git a/rescript-ecosystem/rescript/analysis/examples/example-project/src/syntax/sample-highlighting.tsx b/rescript-ecosystem/rescript/analysis/examples/example-project/src/syntax/sample-highlighting.affine similarity index 86% rename from rescript-ecosystem/rescript/analysis/examples/example-project/src/syntax/sample-highlighting.tsx rename to rescript-ecosystem/rescript/analysis/examples/example-project/src/syntax/sample-highlighting.affine index b646a4cfb..68fbfc74f 100644 --- a/rescript-ecosystem/rescript/analysis/examples/example-project/src/syntax/sample-highlighting.tsx +++ b/rescript-ecosystem/rescript/analysis/examples/example-project/src/syntax/sample-highlighting.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module sample-highlighting; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === // Bindings let numberBinding = 123; @@ -92,3 +100,5 @@ let jsx = ( function Property() { throw new Error("Function not implemented."); } + +==================================== */ diff --git a/rescript-ecosystem/rescript/packages/@rescript/darwin-arm64/bin.d.affine b/rescript-ecosystem/rescript/packages/@rescript/darwin-arm64/bin.d.affine new file mode 100644 index 000000000..b3ff76e92 --- /dev/null +++ b/rescript-ecosystem/rescript/packages/@rescript/darwin-arm64/bin.d.affine @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module bin.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +export const binDir: string; + +export const binPaths: BinaryPaths; + +export type BinaryPaths = { + bsc_exe: string; + rescript_tools_exe: string; + rescript_editor_analysis_exe: string; + rescript_exe: string; +}; + +==================================== */ diff --git a/rescript-ecosystem/rescript/packages/@rescript/darwin-arm64/bin.d.ts b/rescript-ecosystem/rescript/packages/@rescript/darwin-arm64/bin.d.ts deleted file mode 100644 index f6fa8daac..000000000 --- a/rescript-ecosystem/rescript/packages/@rescript/darwin-arm64/bin.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export const binDir: string; - -export const binPaths: BinaryPaths; - -export type BinaryPaths = { - bsc_exe: string; - rescript_tools_exe: string; - rescript_editor_analysis_exe: string; - rescript_exe: string; -}; diff --git a/rescript-ecosystem/rescript/packages/@rescript/darwin-x64/bin.d.affine b/rescript-ecosystem/rescript/packages/@rescript/darwin-x64/bin.d.affine new file mode 100644 index 000000000..b3ff76e92 --- /dev/null +++ b/rescript-ecosystem/rescript/packages/@rescript/darwin-x64/bin.d.affine @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module bin.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +export const binDir: string; + +export const binPaths: BinaryPaths; + +export type BinaryPaths = { + bsc_exe: string; + rescript_tools_exe: string; + rescript_editor_analysis_exe: string; + rescript_exe: string; +}; + +==================================== */ diff --git a/rescript-ecosystem/rescript/packages/@rescript/darwin-x64/bin.d.ts b/rescript-ecosystem/rescript/packages/@rescript/darwin-x64/bin.d.ts deleted file mode 100644 index f6fa8daac..000000000 --- a/rescript-ecosystem/rescript/packages/@rescript/darwin-x64/bin.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export const binDir: string; - -export const binPaths: BinaryPaths; - -export type BinaryPaths = { - bsc_exe: string; - rescript_tools_exe: string; - rescript_editor_analysis_exe: string; - rescript_exe: string; -}; diff --git a/rescript-ecosystem/rescript/packages/@rescript/linux-arm64/bin.d.affine b/rescript-ecosystem/rescript/packages/@rescript/linux-arm64/bin.d.affine new file mode 100644 index 000000000..b3ff76e92 --- /dev/null +++ b/rescript-ecosystem/rescript/packages/@rescript/linux-arm64/bin.d.affine @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module bin.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +export const binDir: string; + +export const binPaths: BinaryPaths; + +export type BinaryPaths = { + bsc_exe: string; + rescript_tools_exe: string; + rescript_editor_analysis_exe: string; + rescript_exe: string; +}; + +==================================== */ diff --git a/rescript-ecosystem/rescript/packages/@rescript/linux-arm64/bin.d.ts b/rescript-ecosystem/rescript/packages/@rescript/linux-arm64/bin.d.ts deleted file mode 100644 index f6fa8daac..000000000 --- a/rescript-ecosystem/rescript/packages/@rescript/linux-arm64/bin.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export const binDir: string; - -export const binPaths: BinaryPaths; - -export type BinaryPaths = { - bsc_exe: string; - rescript_tools_exe: string; - rescript_editor_analysis_exe: string; - rescript_exe: string; -}; diff --git a/rescript-ecosystem/rescript/packages/@rescript/linux-x64/bin.d.affine b/rescript-ecosystem/rescript/packages/@rescript/linux-x64/bin.d.affine new file mode 100644 index 000000000..b3ff76e92 --- /dev/null +++ b/rescript-ecosystem/rescript/packages/@rescript/linux-x64/bin.d.affine @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module bin.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +export const binDir: string; + +export const binPaths: BinaryPaths; + +export type BinaryPaths = { + bsc_exe: string; + rescript_tools_exe: string; + rescript_editor_analysis_exe: string; + rescript_exe: string; +}; + +==================================== */ diff --git a/rescript-ecosystem/rescript/packages/@rescript/linux-x64/bin.d.ts b/rescript-ecosystem/rescript/packages/@rescript/linux-x64/bin.d.ts deleted file mode 100644 index f6fa8daac..000000000 --- a/rescript-ecosystem/rescript/packages/@rescript/linux-x64/bin.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export const binDir: string; - -export const binPaths: BinaryPaths; - -export type BinaryPaths = { - bsc_exe: string; - rescript_tools_exe: string; - rescript_editor_analysis_exe: string; - rescript_exe: string; -}; diff --git a/rescript-ecosystem/rescript/packages/@rescript/win32-x64/bin.d.affine b/rescript-ecosystem/rescript/packages/@rescript/win32-x64/bin.d.affine new file mode 100644 index 000000000..b3ff76e92 --- /dev/null +++ b/rescript-ecosystem/rescript/packages/@rescript/win32-x64/bin.d.affine @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module bin.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +export const binDir: string; + +export const binPaths: BinaryPaths; + +export type BinaryPaths = { + bsc_exe: string; + rescript_tools_exe: string; + rescript_editor_analysis_exe: string; + rescript_exe: string; +}; + +==================================== */ diff --git a/rescript-ecosystem/rescript/packages/@rescript/win32-x64/bin.d.ts b/rescript-ecosystem/rescript/packages/@rescript/win32-x64/bin.d.ts deleted file mode 100644 index f6fa8daac..000000000 --- a/rescript-ecosystem/rescript/packages/@rescript/win32-x64/bin.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export const binDir: string; - -export const binPaths: BinaryPaths; - -export type BinaryPaths = { - bsc_exe: string; - rescript_tools_exe: string; - rescript_editor_analysis_exe: string; - rescript_exe: string; -}; diff --git a/rescript-ecosystem/rescript/packages/playground/tsconfig.json b/rescript-ecosystem/rescript/packages/playground/tsconfig.json deleted file mode 100644 index 49d00ee97..000000000 --- a/rescript-ecosystem/rescript/packages/playground/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "resolveJsonModule": true - }, - "include": ["scripts", "rescript.json"], - "exclude": ["lib/**"] -} diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/stdlib-no-shims/src/StdlibNoShims.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/stdlib-no-shims/src/StdlibNoShims.gen.affine similarity index 95% rename from rescript-ecosystem/rescript/tests/gentype_tests/stdlib-no-shims/src/StdlibNoShims.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/stdlib-no-shims/src/StdlibNoShims.gen.affine index 8f46ce8d8..e267b8dc2 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/stdlib-no-shims/src/StdlibNoShims.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/stdlib-no-shims/src/StdlibNoShims.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module StdlibNoShims.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from StdlibNoShims.res by genType. */ /* eslint-disable */ @@ -116,3 +124,5 @@ export const idIntlSegments: (x:Intl.Segments) => Intl.Segments = StdlibNoShimsJ export const idJsError: (x:Error) => Error = StdlibNoShimsJS.idJsError as any; export const idObj: (x:{}) => {} = StdlibNoShimsJS.idObj as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/stdlib-no-shims/src/index.ts b/rescript-ecosystem/rescript/tests/gentype_tests/stdlib-no-shims/src/index.affine similarity index 94% rename from rescript-ecosystem/rescript/tests/gentype_tests/stdlib-no-shims/src/index.ts rename to rescript-ecosystem/rescript/tests/gentype_tests/stdlib-no-shims/src/index.affine index 456660117..01bbf898b 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/stdlib-no-shims/src/index.ts +++ b/rescript-ecosystem/rescript/tests/gentype_tests/stdlib-no-shims/src/index.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module index; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === // Import the generated bindings to force TS to resolve types without shims import * as S from "./StdlibNoShims.gen"; @@ -118,3 +126,5 @@ const _obj: {} = S.idObj({ a: 1, b: "x" }); // Tuple const _tup: [number, string, number] = S.idTuple([1, "x", 1.5]); + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/stdlib-no-shims/tsconfig.json b/rescript-ecosystem/rescript/tests/gentype_tests/stdlib-no-shims/tsconfig.json deleted file mode 100644 index d466b7089..000000000 --- a/rescript-ecosystem/rescript/tests/gentype_tests/stdlib-no-shims/tsconfig.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2020", - "module": "ESNext", - "moduleResolution": "Node", - "jsx": "preserve", - "strict": true, - "noEmit": true, - "lib": ["DOM", "DOM.Iterable", "ESNext"], - "skipLibCheck": true, - "allowImportingTsExtensions": true, - "allowJs": true - }, - "include": ["src/**/*.ts", "src/**/*.tsx"] -} diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/App.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/App.affine similarity index 52% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/App.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/App.affine index f5e213df6..8976833f7 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/App.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/App.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module App; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === import * as React from "react"; import "./App.css"; @@ -13,3 +21,5 @@ class App extends React.PureComponent { } export default App; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/AutoAnnotate.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/AutoAnnotate.gen.affine similarity index 64% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/AutoAnnotate.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/AutoAnnotate.gen.affine index 55660702c..9fadb4d05 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/AutoAnnotate.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/AutoAnnotate.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module AutoAnnotate.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from AutoAnnotate.res by genType. */ /* eslint-disable */ @@ -16,3 +24,5 @@ export type r4 = { readonly r4: number }; export type annotatedVariant = { TAG: "R2"; _0: r2; _1: r3 } | { TAG: "R4"; _0: r4 }; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/BucklescriptAnnotations.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/BucklescriptAnnotations.gen.affine similarity index 67% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/BucklescriptAnnotations.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/BucklescriptAnnotations.gen.affine index 3a734499c..7bc09242f 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/BucklescriptAnnotations.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/BucklescriptAnnotations.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module BucklescriptAnnotations.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from BucklescriptAnnotations.res by genType. */ /* eslint-disable */ @@ -16,3 +24,5 @@ export type someMethods = { readonly threeargs: (_1:number, _2:string, _3:number) => string; readonly twoArgs: (_1:number, _2:string) => number }; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Comments.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Comments.gen.affine similarity index 82% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Comments.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Comments.gen.affine index 584da010c..4dcf48e1a 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Comments.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Comments.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Comments.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Comments.res by genType. */ /* eslint-disable */ @@ -28,3 +36,5 @@ export const DecideSubject__placeholder: (run:string, times:number) => void = Co export const DecideSubject: { /** Decide on a subject matter for a poem. */ _placeholder: (run:string, times:number) => void } = CommentsJS.DecideSubject as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Core.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Core.gen.affine similarity index 93% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Core.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Core.gen.affine index 6001f862e..7bc7fa5ae 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Core.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Core.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Core.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Core.res by genType. */ /* eslint-disable */ @@ -72,3 +80,5 @@ export const option1: (x:(undefined | variant)) => (undefined | variant) = CoreJ export const jsonEncodeString1: unknown = CoreJS.jsonEncodeString1 as any; export const jsonEncodeString2: unknown = CoreJS.jsonEncodeString2 as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/CoreTS.ts b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/CoreTS.affine similarity index 51% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/CoreTS.ts rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/CoreTS.affine index 9c15fb041..e3c52d689 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/CoreTS.ts +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/CoreTS.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module CoreTS; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === export declare function someFunWithNullThenOptionalArgs( nullable: null | string, app?: string, @@ -7,3 +15,5 @@ export declare function someFunWithNullUndefinedArg( nullUndefined: null | undefined | string, other: number, ): string; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Derivings.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Derivings.gen.affine similarity index 64% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Derivings.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Derivings.gen.affine index 5a23227fc..1d8c83a90 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Derivings.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Derivings.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Derivings.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Derivings.res by genType. */ /* eslint-disable */ @@ -15,3 +23,5 @@ export const click: action = DerivingsJS.click as any; export const submit: (_1:string) => action = DerivingsJS.submit as any; export const cancel: action = DerivingsJS.cancel as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Docstrings.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Docstrings.gen.affine similarity index 89% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Docstrings.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Docstrings.gen.affine index 2d849d55a..aee694f66 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Docstrings.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Docstrings.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Docstrings.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Docstrings.res by genType. */ /* eslint-disable */ @@ -50,3 +58,5 @@ export const unitArgWithoutConversionU: () => string = DocstringsJS.unitArgWitho export const unitArgWithConversion: () => t = DocstringsJS.unitArgWithConversion as any; export const unitArgWithConversionU: () => t = DocstringsJS.unitArgWithConversionU as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/EmitModuleIfNoConversion.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/EmitModuleIfNoConversion.gen.affine similarity index 71% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/EmitModuleIfNoConversion.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/EmitModuleIfNoConversion.gen.affine index 0bfa420df..e3595e1c6 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/EmitModuleIfNoConversion.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/EmitModuleIfNoConversion.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module EmitModuleIfNoConversion.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from EmitModuleIfNoConversion.res by genType. */ /* eslint-disable */ @@ -16,3 +24,5 @@ export const Y_x: string = EmitModuleIfNoConversionJS.Y.x as any; export const Y: { x: string } = EmitModuleIfNoConversionJS.Y as any; export const X: { x: number; foo: (t:t) => void } = EmitModuleIfNoConversionJS.X as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/EscapedNames.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/EscapedNames.gen.affine similarity index 72% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/EscapedNames.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/EscapedNames.gen.affine index e4ade9ad9..e9d6ff071 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/EscapedNames.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/EscapedNames.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module EscapedNames.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from EscapedNames.res by genType. */ /* eslint-disable */ @@ -21,3 +29,5 @@ export type record = { }; export const myRecord: record = EscapedNamesJS.myRecord as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ExportWithRename.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ExportWithRename.gen.affine similarity index 57% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ExportWithRename.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ExportWithRename.gen.affine index 6e8cb207c..7c1a9fecc 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ExportWithRename.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ExportWithRename.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module ExportWithRename.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from ExportWithRename.res by genType. */ /* eslint-disable */ @@ -8,3 +16,5 @@ import * as ExportWithRenameJS from './ExportWithRename.res.js'; export type props = { readonly s: s }; export const Renamed: React.ComponentType<{ readonly s: string }> = ExportWithRenameJS.make as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/FirstClassModules.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/FirstClassModules.gen.affine similarity index 87% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/FirstClassModules.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/FirstClassModules.gen.affine index 3b0d202e0..9a521f2e3 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/FirstClassModules.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/FirstClassModules.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module FirstClassModules.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from FirstClassModules.res by genType. */ /* eslint-disable */ @@ -64,3 +72,5 @@ export const someFunctorAsFunction: (x:{ readonly Z: unknown; readonly y: string }) => { readonly ww: string } = FirstClassModulesJS.someFunctorAsFunction as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/FirstClassModulesInterface.gen.affine b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/FirstClassModulesInterface.gen.affine new file mode 100644 index 000000000..55b037179 --- /dev/null +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/FirstClassModulesInterface.gen.affine @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module FirstClassModulesInterface.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from FirstClassModulesInterface.resi by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +export type record = { readonly x: number; readonly y: string }; + +export type firstClassModule = { readonly x: number }; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/FirstClassModulesInterface.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/FirstClassModulesInterface.gen.tsx deleted file mode 100644 index 6da111a8a..000000000 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/FirstClassModulesInterface.gen.tsx +++ /dev/null @@ -1,8 +0,0 @@ -/* TypeScript file generated from FirstClassModulesInterface.resi by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -export type record = { readonly x: number; readonly y: string }; - -export type firstClassModule = { readonly x: number }; diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/GADT.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/GADT.gen.affine similarity index 53% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/GADT.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/GADT.gen.affine index b6e29a5c5..4a0aec2a8 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/GADT.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/GADT.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module GADT.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from GADT.res by genType. */ /* eslint-disable */ @@ -6,3 +14,5 @@ export abstract class t { protected opaque!: any }; /* simulate opaque types */ export abstract class tt { protected opaque!: any }; /* simulate opaque types */ + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Hooks.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Hooks.gen.affine similarity index 96% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Hooks.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Hooks.gen.affine index 3ebfd5880..ac6aa0b93 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Hooks.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Hooks.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Hooks.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Hooks.res by genType. */ /* eslint-disable */ @@ -137,3 +145,5 @@ export const DD: { make: React.ComponentType<{ readonly array: Js_TypedArray2_Ui export const Another: { anotherComponent: React.ComponentType<{ readonly vehicle: vehicle; readonly callback: () => void }> } = HooksJS.Another as any; export const Poly: { polymorphicComponent: React.ComponentType<{ readonly p: [vehicle, any] }> } = HooksJS.Poly as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/IgnoreInterface.gen.affine b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/IgnoreInterface.gen.affine new file mode 100644 index 000000000..c491e92ec --- /dev/null +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/IgnoreInterface.gen.affine @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module IgnoreInterface.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from IgnoreInterface.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +export type t = number; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/IgnoreInterface.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/IgnoreInterface.gen.tsx deleted file mode 100644 index e1da44fd5..000000000 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/IgnoreInterface.gen.tsx +++ /dev/null @@ -1,6 +0,0 @@ -/* TypeScript file generated from IgnoreInterface.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -export type t = number; diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ImportHookDefault.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ImportHookDefault.gen.affine similarity index 88% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ImportHookDefault.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ImportHookDefault.gen.affine index 8552188b0..e90a5c19a 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ImportHookDefault.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ImportHookDefault.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module ImportHookDefault.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from ImportHookDefault.res by genType. */ /* eslint-disable */ @@ -52,3 +60,5 @@ export type MM_props = { }; export default $$default; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ImportHooks.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ImportHooks.gen.affine similarity index 86% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ImportHooks.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ImportHooks.gen.affine index fc7dd23a2..1a4cc3306 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ImportHooks.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ImportHooks.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module ImportHooks.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from ImportHooks.res by genType. */ /* eslint-disable */ @@ -39,3 +47,5 @@ export type props = { readonly children: children; readonly renderMe: renderMe }; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ImportIndex.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ImportIndex.gen.affine similarity index 73% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ImportIndex.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ImportIndex.gen.affine index 31f142f07..1911e9698 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ImportIndex.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ImportIndex.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module ImportIndex.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from ImportIndex.res by genType. */ /* eslint-disable */ @@ -14,3 +22,5 @@ export const $$default: unknown = defaultTypeChecked as React.ComponentType<{ re export type props = { readonly method?: method }; export default $$default; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ImportJsValue.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ImportJsValue.gen.affine similarity index 95% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ImportJsValue.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ImportJsValue.gen.affine index 96acb5ab4..01c6d1460 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ImportJsValue.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ImportJsValue.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module ImportJsValue.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from ImportJsValue.res by genType. */ /* eslint-disable */ @@ -120,3 +128,5 @@ export const useGetAbs: (x:AbsoluteValue_t) => number = ImportJsValueJS.useGetAb export const returnedFromHigherOrder: number = ImportJsValueJS.returnedFromHigherOrder as any; export default $$default; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Inherits.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Inherits.gen.affine similarity index 50% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Inherits.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Inherits.gen.affine index 29faeb762..8e64d313a 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Inherits.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Inherits.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Inherits.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Inherits.res by genType. */ /* eslint-disable */ @@ -8,3 +16,5 @@ export type red = "Ruby" | "Redwood" | "Rust"; export type blue = "Sapphire" | "Neon" | "Navy"; export type color = red | blue; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/InnerModuleSignature.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/InnerModuleSignature.gen.affine similarity index 64% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/InnerModuleSignature.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/InnerModuleSignature.gen.affine index f5e9015cb..35d4034d1 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/InnerModuleSignature.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/InnerModuleSignature.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module InnerModuleSignature.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from InnerModuleSignature.res by genType. */ /* eslint-disable */ @@ -10,3 +18,5 @@ export type InnerModule_t = string; export const InnerModule_make: (_1:InnerModule_t) => string = InnerModuleSignatureJS.InnerModule.make as any; export const InnerModule: { make: (_1:InnerModule_t) => string } = InnerModuleSignatureJS.InnerModule as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/JSXV4.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/JSXV4.gen.affine similarity index 86% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/JSXV4.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/JSXV4.gen.affine index 5d138887b..c623bc4b0 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/JSXV4.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/JSXV4.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module JSXV4.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from JSXV4.res by genType. */ /* eslint-disable */ @@ -41,3 +49,5 @@ export type props = { export const CompV4_make: React.ComponentType<{ readonly x: string; readonly y: string }> = JSXV4JS.CompV4.make as any; export const CompV4: { make: React.ComponentType<{ readonly x: string; readonly y: string }> } = JSXV4JS.CompV4 as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/LabeledFun.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/LabeledFun.gen.affine similarity index 56% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/LabeledFun.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/LabeledFun.gen.affine index dad8e55ed..433eaa6b0 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/LabeledFun.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/LabeledFun.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module LabeledFun.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from LabeledFun.res by genType. */ /* eslint-disable */ @@ -6,3 +14,5 @@ import * as LabeledFunJS from './LabeledFun.res.js'; export const labelled: (a:number, b:(undefined | number), c:number, _4:number, e:number, f:number) => number = LabeledFunJS.labelled as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/LetPrivate.gen.affine b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/LetPrivate.gen.affine new file mode 100644 index 000000000..c00f5d1ce --- /dev/null +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/LetPrivate.gen.affine @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module LetPrivate.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from LetPrivate.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +import * as LetPrivateJS from './LetPrivate.res.js'; + +export const y: number = LetPrivateJS.y as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/LetPrivate.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/LetPrivate.gen.tsx deleted file mode 100644 index 4e8a975cb..000000000 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/LetPrivate.gen.tsx +++ /dev/null @@ -1,8 +0,0 @@ -/* TypeScript file generated from LetPrivate.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -import * as LetPrivateJS from './LetPrivate.res.js'; - -export const y: number = LetPrivateJS.y as any; diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Lib.gen.affine b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Lib.gen.affine new file mode 100644 index 000000000..0e48ee0c8 --- /dev/null +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Lib.gen.affine @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Lib.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from Lib.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +export type action = + { action: "A"; _0: string } + | { action: "B"; _0: string }; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Lib.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Lib.gen.tsx deleted file mode 100644 index 83b8e6707..000000000 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Lib.gen.tsx +++ /dev/null @@ -1,8 +0,0 @@ -/* TypeScript file generated from Lib.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -export type action = - { action: "A"; _0: string } - | { action: "B"; _0: string }; diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Machine.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Machine.gen.affine similarity index 50% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Machine.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Machine.gen.affine index 9f96470cc..6e7107150 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Machine.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Machine.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Machine.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Machine.res by genType. */ /* eslint-disable */ @@ -8,3 +16,5 @@ import * as MachineJS from './Machine.res.js'; export type aa = { TAG: "A"; _0: number }; export const a: aa = MachineJS.a as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ModuleAliases.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ModuleAliases.gen.affine similarity index 82% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ModuleAliases.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ModuleAliases.gen.affine index 6f6a95ed9..f12957a02 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ModuleAliases.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ModuleAliases.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module ModuleAliases.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from ModuleAliases.res by genType. */ /* eslint-disable */ @@ -24,3 +32,5 @@ export const testNested: (x:InnerNestedAlias_t) => InnerNestedAlias_t = ModuleAl export const testInner: (x:Outer2Alias_OuterInnerAlias_innerT) => Outer2Alias_OuterInnerAlias_innerT = ModuleAliasesJS.testInner as any; export const testInner2: (x:Outer2Alias_Inner2_OuterInnerAlias2_innerT) => Outer2Alias_Inner2_OuterInnerAlias2_innerT = ModuleAliasesJS.testInner2 as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ModuleAliases2.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ModuleAliases2.gen.affine similarity index 65% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ModuleAliases2.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ModuleAliases2.gen.affine index e5cf11bca..b45d4fd7f 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ModuleAliases2.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ModuleAliases2.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module ModuleAliases2.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from ModuleAliases2.res by genType. */ /* eslint-disable */ @@ -14,3 +22,5 @@ export type OuterAlias_outer = Outer_outer; export type OuterAlias_Inner_inner = Outer_Inner_inner; export type InnerAlias_inner = OuterAlias_Inner_inner; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ModuleResolution1.gen.affine b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ModuleResolution1.gen.affine new file mode 100644 index 000000000..0dfeabc04 --- /dev/null +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ModuleResolution1.gen.affine @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module ModuleResolution1.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from ModuleResolution1.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +export type t1 = { readonly foo: string; readonly bar: number }; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ModuleResolution1.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ModuleResolution1.gen.tsx deleted file mode 100644 index 3fe5123d7..000000000 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ModuleResolution1.gen.tsx +++ /dev/null @@ -1,6 +0,0 @@ -/* TypeScript file generated from ModuleResolution1.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -export type t1 = { readonly foo: string; readonly bar: number }; diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ModuleResolution2.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ModuleResolution2.gen.affine similarity index 51% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ModuleResolution2.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ModuleResolution2.gen.affine index d9e793ef6..245fa1e7b 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/ModuleResolution2.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/ModuleResolution2.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module ModuleResolution2.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from ModuleResolution2.res by genType. */ /* eslint-disable */ @@ -6,3 +14,5 @@ import type {t1 as ModuleResolution1_t1} from './ModuleResolution1.gen'; export type t2 = { readonly dependency: ModuleResolution1_t1 }; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MoreVariants.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MoreVariants.gen.affine similarity index 67% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MoreVariants.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MoreVariants.gen.affine index 9da02967f..efafad753 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MoreVariants.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MoreVariants.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module MoreVariants.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from MoreVariants.res by genType. */ /* eslint-disable */ @@ -12,3 +20,5 @@ export type withoutRenaming = "type_" | "b"; export const testWithRenaming: (x:withRenaming) => withRenaming = MoreVariantsJS.testWithRenaming as any; export const testWithoutRenaming: (x:withoutRenaming) => withoutRenaming = MoreVariantsJS.testWithoutRenaming as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MyInput.affine b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MyInput.affine new file mode 100644 index 000000000..93f304cb8 --- /dev/null +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MyInput.affine @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module MyInput; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +import type * as React from "react"; + +type Props = React.InputHTMLAttributes; + +const MyInput: React.FC = props => ; + +export default MyInput; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MyInput.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MyInput.gen.affine similarity index 78% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MyInput.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MyInput.gen.affine index 9e9e89735..b294fd498 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MyInput.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MyInput.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module MyInput.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from MyInput.res by genType. */ /* eslint-disable */ @@ -18,3 +26,5 @@ export type inputFocusEvent = $$inputFocusEvent; export type props = { readonly onFocus?: onFocus }; export default $$default; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MyInput.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MyInput.tsx deleted file mode 100644 index 367c734d5..000000000 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MyInput.tsx +++ /dev/null @@ -1,7 +0,0 @@ -import type * as React from "react"; - -type Props = React.InputHTMLAttributes; - -const MyInput: React.FC = props => ; - -export default MyInput; diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MyMath.ts b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MyMath.affine similarity index 80% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MyMath.ts rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MyMath.affine index 9c4db3942..29522c4bf 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/MyMath.ts +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MyMath.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module MyMath; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === export const round: (_: number) => number = Math.round; export const round2 = round; @@ -36,3 +44,5 @@ export type num = number; export type polyType = { x: T }; export default 34; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MyModule.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MyModule.gen.affine similarity index 50% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MyModule.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MyModule.gen.affine index 37a3a3bf4..a7936f06a 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MyModule.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/MyModule.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module MyModule.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from MyModule.res by genType. */ /* eslint-disable */ @@ -8,3 +16,5 @@ import * as MyModuleJS from './MyModule.res.js'; export type t = number; export const add: (a:t, b:t) => t = MyModuleJS.add as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NestedModules.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NestedModules.gen.affine similarity index 87% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NestedModules.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NestedModules.gen.affine index ad6d2fa30..3076d079d 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NestedModules.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NestedModules.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module NestedModules.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from NestedModules.res by genType. */ /* eslint-disable */ @@ -39,3 +47,5 @@ export const Universe: { }; someString: string } = NestedModulesJS.Universe as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NestedModulesInSignature.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NestedModulesInSignature.gen.affine similarity index 61% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NestedModulesInSignature.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NestedModulesInSignature.gen.affine index 2e4577ba5..f39912345 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/NestedModulesInSignature.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NestedModulesInSignature.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module NestedModulesInSignature.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from NestedModulesInSignature.resi by genType. */ /* eslint-disable */ @@ -8,3 +16,5 @@ import * as NestedModulesInSignatureJS from './NestedModulesInSignature.res.js'; export const Universe_theAnswer: number = NestedModulesInSignatureJS.Universe.theAnswer as any; export const Universe: { theAnswer: number } = NestedModulesInSignatureJS.Universe as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NestedVariants.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NestedVariants.gen.affine similarity index 90% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NestedVariants.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NestedVariants.gen.affine index 529c7e7fa..d21824ed0 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NestedVariants.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NestedVariants.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module NestedVariants.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from NestedVariants.res by genType. */ /* eslint-disable */ @@ -69,3 +77,5 @@ export const testBoxedBinary: (param:boxedBinary) => number = NestedVariantsJS.t export const testUnboxedBinary: (param:unboxedBinary) => number = NestedVariantsJS.testUnboxedBinary as any; export const testInline: (x:inline) => inline = NestedVariantsJS.testInline as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NonrecursiveTypes.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NonrecursiveTypes.gen.affine similarity index 60% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NonrecursiveTypes.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NonrecursiveTypes.gen.affine index 9842501a0..0347e6a15 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NonrecursiveTypes.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NonrecursiveTypes.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module NonrecursiveTypes.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from NonrecursiveTypes.res by genType. */ /* eslint-disable */ @@ -12,3 +20,5 @@ export type M_recursive = { readonly self: M_recursive }; export type M_mutualRecursive = { readonly a: M_a }; export type M_a = { readonly self: M_mutualRecursive }; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NumericPolyVar.gen.affine b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NumericPolyVar.gen.affine new file mode 100644 index 000000000..17a46a5ec --- /dev/null +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NumericPolyVar.gen.affine @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module NumericPolyVar.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from NumericPolyVar.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +export type t = 12 | 0 | "b"; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NumericPolyVar.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NumericPolyVar.gen.tsx deleted file mode 100644 index aa422e0c1..000000000 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/NumericPolyVar.gen.tsx +++ /dev/null @@ -1,6 +0,0 @@ -/* TypeScript file generated from NumericPolyVar.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -export type t = 12 | 0 | "b"; diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Object.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Object.gen.affine similarity index 55% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Object.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Object.gen.affine index c8e3a5152..e279b4120 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Object.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Object.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Object.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Object.res by genType. */ /* eslint-disable */ @@ -6,3 +14,5 @@ export type someType = { readonly crop?: string; readonly "fp-z"?: string }; export type someType2 = { readonly crop: (undefined | string); readonly "fp-z": (undefined | string) }; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/OnClick2.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/OnClick2.gen.affine similarity index 64% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/OnClick2.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/OnClick2.gen.affine index a804d5483..cc37a9dda 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/OnClick2.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/OnClick2.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module OnClick2.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from OnClick2.res by genType. */ /* eslint-disable */ @@ -10,3 +18,5 @@ import type {Mouse_t as JsxEvent_Mouse_t} from '../src/shims/JsxEvent.shim'; export type props = { readonly onClick: onClick }; export const make: React.ComponentType<{ readonly onClick: (_1:JsxEvent_Mouse_t) => void }> = OnClick2JS.make as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Opaque.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Opaque.gen.affine similarity index 73% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Opaque.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Opaque.gen.affine index 5b300724d..b4931ddd5 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Opaque.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Opaque.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Opaque.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Opaque.res by genType. */ /* eslint-disable */ @@ -14,3 +22,5 @@ export type pair = [opaqueFromRecords, opaqueFromRecords]; export const noConversion: (x:opaqueFromRecords) => opaqueFromRecords = OpaqueJS.noConversion as any; export const testConvertNestedRecordFromOtherFile: (x:Records_business) => Records_business = OpaqueJS.testConvertNestedRecordFromOtherFile as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Records.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Records.gen.affine similarity index 93% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Records.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Records.gen.affine index f605dc6ec..03b9c4e48 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Records.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Records.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Records.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Records.res by genType. */ /* eslint-disable */ @@ -106,3 +114,5 @@ export const testMyObj2: (x:myObj) => myObj = RecordsJS.testMyObj2 as any; export const testMyRecBsAs: (x:myRecBsAs) => string[] = RecordsJS.testMyRecBsAs as any; export const testMyRecBsAs2: (x:myRecBsAs) => myRecBsAs = RecordsJS.testMyRecBsAs2 as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/References.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/References.gen.affine similarity index 82% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/References.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/References.gen.affine index ff722ab93..62602655d 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/References.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/References.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module References.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from References.res by genType. */ /* eslint-disable */ @@ -26,3 +34,5 @@ export const set: (_1:R_t, _2:T1) => void = ReferencesJS.set as any; export const destroysRefIdentity: (x:{ contents: requiresConversion }) => { contents: requiresConversion } = ReferencesJS.destroysRefIdentity as any; export const preserveRefIdentity: (x:R_t) => R_t = ReferencesJS.preserveRefIdentity as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Shadow.gen.affine b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Shadow.gen.affine new file mode 100644 index 000000000..56f3d3307 --- /dev/null +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Shadow.gen.affine @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Shadow.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from Shadow.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +import * as ShadowJS from './Shadow.res.js'; + +export const test: () => string = ShadowJS.test as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Shadow.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Shadow.gen.tsx deleted file mode 100644 index 4684ffd31..000000000 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Shadow.gen.tsx +++ /dev/null @@ -1,8 +0,0 @@ -/* TypeScript file generated from Shadow.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -import * as ShadowJS from './Shadow.res.js'; - -export const test: () => string = ShadowJS.test as any; diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestEmitInnerModules.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestEmitInnerModules.gen.affine similarity index 71% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestEmitInnerModules.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestEmitInnerModules.gen.affine index c90395cac..4079183af 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestEmitInnerModules.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestEmitInnerModules.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module TestEmitInnerModules.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from TestEmitInnerModules.res by genType. */ /* eslint-disable */ @@ -14,3 +22,5 @@ export const Outer_Medium_Inner_y: number = TestEmitInnerModulesJS.Outer.Medium. export const Inner: { x: number; y: string } = TestEmitInnerModulesJS.Inner as any; export const Outer: { Medium: { Inner: { y: number } } } = TestEmitInnerModulesJS.Outer as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestFirstClassModules.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestFirstClassModules.gen.affine similarity index 85% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestFirstClassModules.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestFirstClassModules.gen.affine index ee7c318a6..5464f7928 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestFirstClassModules.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestFirstClassModules.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module TestFirstClassModules.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from TestFirstClassModules.res by genType. */ /* eslint-disable */ @@ -20,3 +28,5 @@ export const convertInterface: (x:FirstClassModulesInterface_firstClassModule) = export const convertRecord: (x:FirstClassModulesInterface_record) => FirstClassModulesInterface_record = TestFirstClassModulesJS.convertRecord as any; export const convertFirstClassModuleWithTypeEquations: (x:{ readonly out: ((_1:T1) => T1); readonly Inner: { readonly inn: ((_1:T2) => T2) } }) => { readonly out: (_1:T1) => T1; readonly Inner: { readonly inn: (_1:T2) => T2 } } = TestFirstClassModulesJS.convertFirstClassModuleWithTypeEquations as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestImmutableArray.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestImmutableArray.gen.affine similarity index 57% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestImmutableArray.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestImmutableArray.gen.affine index 9037ddbe3..e38afb1f6 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestImmutableArray.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestImmutableArray.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module TestImmutableArray.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from TestImmutableArray.res by genType. */ /* eslint-disable */ @@ -6,3 +14,5 @@ import * as TestImmutableArrayJS from './TestImmutableArray.res.js'; export const testImmutableArrayGet: (arr:ReadonlyArray) => (undefined | T1) = TestImmutableArrayJS.testImmutableArrayGet as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestModuleAliases.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestModuleAliases.gen.affine similarity index 85% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestModuleAliases.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestModuleAliases.gen.affine index fa6bcf013..c19d7f8b5 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TestModuleAliases.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestModuleAliases.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module TestModuleAliases.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from TestModuleAliases.res by genType. */ /* eslint-disable */ @@ -36,3 +44,5 @@ export const testInner1Expanded: (x:ModuleAliases2_InnerAlias_inner) => ModuleAl export const testInner2: (x:inner2) => inner2 = TestModuleAliasesJS.testInner2 as any; export const testInner2Expanded: (x:ModuleAliases2_Outer_Inner_inner) => ModuleAliases2_Outer_Inner_inner = TestModuleAliasesJS.testInner2Expanded as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestPromise.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestPromise.gen.affine similarity index 69% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestPromise.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestPromise.gen.affine index 3e7580c24..0dbc2ec59 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestPromise.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TestPromise.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module TestPromise.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from TestPromise.res by genType. */ /* eslint-disable */ @@ -14,3 +22,5 @@ export type toPayload = { readonly result: string }; export const convert: (p:Promise) => Promise = TestPromiseJS.convert as any; export const barx: (x:(undefined | Promise<(undefined | string)>), _2:void) => boolean = TestPromiseJS.barx as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TransitiveType1.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TransitiveType1.gen.affine similarity index 69% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TransitiveType1.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TransitiveType1.gen.affine index 71698f9c8..723c18ef7 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TransitiveType1.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TransitiveType1.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module TransitiveType1.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from TransitiveType1.res by genType. */ /* eslint-disable */ @@ -12,3 +20,5 @@ import type {t2 as TransitiveType2_t2} from './TransitiveType2.gen'; export const convert: (x:TransitiveType2_t2) => TransitiveType2_t2 = TransitiveType1JS.convert as any; export const convertAlias: (x:TransitiveType2_t2Alias) => TransitiveType2_t2Alias = TransitiveType1JS.convertAlias as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TransitiveType2.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TransitiveType2.gen.affine similarity index 52% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TransitiveType2.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TransitiveType2.gen.affine index 02c9548b3..3a2028b39 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TransitiveType2.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TransitiveType2.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module TransitiveType2.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from TransitiveType2.res by genType. */ /* eslint-disable */ @@ -8,3 +16,5 @@ import type {t3 as TransitiveType3_t3} from './TransitiveType3.gen'; export type t2 = (undefined | TransitiveType3_t3); export type t2Alias = t2; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TransitiveType3.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TransitiveType3.gen.affine similarity index 56% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TransitiveType3.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TransitiveType3.gen.affine index 9fa08f9bd..be1d37475 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TransitiveType3.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TransitiveType3.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module TransitiveType3.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from TransitiveType3.res by genType. */ /* eslint-disable */ @@ -8,3 +16,5 @@ import * as TransitiveType3JS from './TransitiveType3.res.js'; export type t3 = { readonly i: number; readonly s: string }; export const convertT3: (x:t3) => t3 = TransitiveType3JS.convertT3 as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TypeNameSanitize.gen.affine b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TypeNameSanitize.gen.affine new file mode 100644 index 000000000..53921776e --- /dev/null +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TypeNameSanitize.gen.affine @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module TypeNameSanitize.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from TypeNameSanitize.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +export type t_ = number; + +export type M_t__ = number; + +export type pair = [t_, M_t__]; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TypeNameSanitize.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TypeNameSanitize.gen.tsx deleted file mode 100644 index 1d8672b5e..000000000 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TypeNameSanitize.gen.tsx +++ /dev/null @@ -1,10 +0,0 @@ -/* TypeScript file generated from TypeNameSanitize.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -export type t_ = number; - -export type M_t__ = number; - -export type pair = [t_, M_t__]; diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TypeParams1.gen.affine b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TypeParams1.gen.affine new file mode 100644 index 000000000..eafda8651 --- /dev/null +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TypeParams1.gen.affine @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module TypeParams1.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from TypeParams1.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +export type ocaml_array = a[]; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TypeParams1.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TypeParams1.gen.tsx deleted file mode 100644 index 9ec2bad96..000000000 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TypeParams1.gen.tsx +++ /dev/null @@ -1,6 +0,0 @@ -/* TypeScript file generated from TypeParams1.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -export type ocaml_array = a[]; diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TypeParams2.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TypeParams2.gen.affine similarity index 57% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TypeParams2.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TypeParams2.gen.affine index bef46e020..dfcd0afa8 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TypeParams2.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TypeParams2.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module TypeParams2.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from TypeParams2.res by genType. */ /* eslint-disable */ @@ -10,3 +18,5 @@ export type item = { readonly id: number }; export type items = TypeParams1_ocaml_array; export type items2 = item[]; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TypeParams3.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TypeParams3.gen.affine similarity index 67% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TypeParams3.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TypeParams3.gen.affine index 25d8ac0cb..5a32f93a8 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/TypeParams3.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/TypeParams3.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module TypeParams3.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from TypeParams3.res by genType. */ /* eslint-disable */ @@ -12,3 +20,5 @@ import type {items as TypeParams2_items} from './TypeParams2.gen'; export const test: (x:TypeParams2_items) => TypeParams2_items = TypeParams3JS.test as any; export const test2: (x:TypeParams2_items2) => TypeParams2_items2 = TypeParams3JS.test2 as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Unboxed.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Unboxed.gen.affine similarity index 72% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Unboxed.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Unboxed.gen.affine index 43d5469d4..13d45c6a7 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Unboxed.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Unboxed.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Unboxed.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Unboxed.res by genType. */ /* eslint-disable */ @@ -26,3 +34,5 @@ export const a: tabIndex = UnboxedJS.a as any; export const b: tabIndex = UnboxedJS.b as any; export const zero: 0 = UnboxedJS.zero as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Uncurried.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Uncurried.gen.affine similarity index 86% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Uncurried.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Uncurried.gen.affine index 69bc50070..d31531ff1 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Uncurried.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Uncurried.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Uncurried.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Uncurried.res by genType. */ /* eslint-disable */ @@ -40,3 +48,5 @@ export const sumU2: (n:number) => (_1:number) => void = UncurriedJS.sumU2 as any export const sumCurried: (n:number) => (_1:number) => void = UncurriedJS.sumCurried as any; export const sumLblCurried: (s:string, n:number) => (m:number) => void = UncurriedJS.sumLblCurried as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Usage.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Usage.gen.affine similarity index 55% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Usage.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Usage.gen.affine index 551e6df22..52ea9695e 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/Usage.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Usage.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Usage.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Usage.res by genType. */ /* eslint-disable */ @@ -8,3 +16,5 @@ import * as UsageJS from './Usage.res.js'; import type {MyModuleAlias_t as Wrapper_MyModuleAlias_t} from './Wrapper.gen'; export const b: Wrapper_MyModuleAlias_t = UsageJS.b as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/UseImportJsValue.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/UseImportJsValue.gen.affine similarity index 72% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/UseImportJsValue.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/UseImportJsValue.gen.affine index 0fad6f207..3e220029f 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/UseImportJsValue.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/UseImportJsValue.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module UseImportJsValue.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from UseImportJsValue.res by genType. */ /* eslint-disable */ @@ -12,3 +20,5 @@ import type {stringFunction as ImportJsValue_stringFunction} from './ImportJsVal export const useGetProp: (x:ImportJsValue_AbsoluteValue_t) => number = UseImportJsValueJS.useGetProp as any; export const useTypeImportedInOtherModule: (x:ImportJsValue_stringFunction) => ImportJsValue_stringFunction = UseImportJsValueJS.useTypeImportedInOtherModule as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Variants.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Variants.gen.affine similarity index 91% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Variants.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Variants.gen.affine index 3b2b65d60..a92b8a461 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Variants.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Variants.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Variants.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Variants.res by genType. */ /* eslint-disable */ @@ -82,3 +90,5 @@ export const restResult1: (x:result1) => result1 = export const restResult2: (x:result2) => result2 = VariantsJS.restResult2 as any; export const restResult3: (x:result3) => result3 = VariantsJS.restResult3 as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/VariantsWithPayload.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/VariantsWithPayload.gen.affine similarity index 88% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/VariantsWithPayload.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/VariantsWithPayload.gen.affine index 4cb3a20ba..843346b09 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/VariantsWithPayload.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/VariantsWithPayload.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module VariantsWithPayload.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from VariantsWithPayload.res by genType. */ /* eslint-disable */ @@ -50,3 +58,5 @@ export const printVariantWithPayloads: (x:variantWithPayloads) => void = Variant export const testVariant1Int: (x:variant1Int) => variant1Int = VariantsWithPayloadJS.testVariant1Int as any; export const testVariant1Object: (x:variant1Object) => variant1Object = VariantsWithPayloadJS.testVariant1Object as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Warnings.gen.affine b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Warnings.gen.affine new file mode 100644 index 000000000..af1bbcaa1 --- /dev/null +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Warnings.gen.affine @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Warnings.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from Warnings.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +import * as WarningsJS from './Warnings.res.js'; + +export const ddd: number = WarningsJS.x as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Warnings.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Warnings.gen.tsx deleted file mode 100644 index 9fd5e1d21..000000000 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Warnings.gen.tsx +++ /dev/null @@ -1,8 +0,0 @@ -/* TypeScript file generated from Warnings.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -import * as WarningsJS from './Warnings.res.js'; - -export const ddd: number = WarningsJS.x as any; diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Wrapper.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Wrapper.gen.affine similarity index 66% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Wrapper.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Wrapper.gen.affine index d2baeb44c..d3d6f3b6c 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Wrapper.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/Wrapper.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Wrapper.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Wrapper.res by genType. */ /* eslint-disable */ @@ -10,3 +18,5 @@ export type MyModuleAlias_t = number; export const MyModuleAlias_add: (_1:MyModuleAlias_t, _2:MyModuleAlias_t) => MyModuleAlias_t = WrapperJS.MyModuleAlias.add as any; export const MyModuleAlias: { add: (_1:MyModuleAlias_t, _2:MyModuleAlias_t) => MyModuleAlias_t } = WrapperJS.MyModuleAlias as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/counter.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/counter.gen.affine similarity index 52% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/counter.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/counter.gen.affine index 835e5cb89..7b5c8f137 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/counter.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/counter.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module counter.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from counter.res by genType. */ /* eslint-disable */ @@ -8,3 +16,5 @@ import * as counterJS from './counter.res.js'; import type {aa as Machine_aa} from './Machine.gen'; export const b: Machine_aa = counterJS.b as any; + +==================================== */ diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/hookExample.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/hookExample.affine similarity index 80% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/hookExample.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/hookExample.affine index b04a357e0..a4d1c80cd 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/hookExample.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/hookExample.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module hookExample; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === import * as React from "react"; export const foo = (person: { readonly name: string; readonly age: number }) => @@ -39,3 +47,5 @@ class AsClassComponent extends React.PureComponent { export const makeRenamed = AsClassComponent; export default make; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/index.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/index.affine similarity index 94% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/index.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/index.affine index 1fdcd83b2..47e0e2a5a 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/index.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/index.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module index; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === import type * as React from "react"; import * as ReactDOM from "react-dom"; import App from "./App.tsx"; @@ -134,3 +142,5 @@ const signedMessage = DocStrings.signMessage("hello", 42); consoleLog("signedMessage:", signedMessage); export default make; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/location/location.gen.affine b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/location/location.gen.affine new file mode 100644 index 000000000..0bb222928 --- /dev/null +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/location/location.gen.affine @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module location.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from location.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +export type t = { readonly id: string; readonly name: string }; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/location/location.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/location/location.gen.tsx deleted file mode 100644 index d5a66cf1e..000000000 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/location/location.gen.tsx +++ /dev/null @@ -1,6 +0,0 @@ -/* TypeScript file generated from location.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -export type t = { readonly id: string; readonly name: string }; diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/nested/Tuples.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/nested/Tuples.gen.affine similarity index 84% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/nested/Tuples.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/nested/Tuples.gen.affine index 186aa8abc..02a85ffb0 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/nested/Tuples.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/nested/Tuples.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Tuples.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Tuples.res by genType. */ /* eslint-disable */ @@ -30,3 +38,5 @@ export const getFirstName: (param:couple) => string = TuplesJS.getFirstName as a export const marry: (first:person, second:person) => couple = TuplesJS.marry as any; export const changeSecondAge: (param:couple) => couple = TuplesJS.changeSecondAge as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/nested/Types.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/nested/Types.gen.affine similarity index 94% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/nested/Types.gen.tsx rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/nested/Types.gen.affine index cda2b782d..1651f1913 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/nested/Types.gen.tsx +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/nested/Types.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Types.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from Types.res by genType. */ /* eslint-disable */ @@ -133,3 +141,5 @@ export const testInstantiateTypeParameter: (x:instantiateTypeParameter) => insta export const currentTime: Date = TypesJS.currentTime as any; export const optFunction: (undefined | (() => number)) = TypesJS.optFunction as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/react-app-env.d.affine b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/react-app-env.d.affine new file mode 100644 index 000000000..887016c74 --- /dev/null +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/react-app-env.d.affine @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module react-app-env.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/// + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/react-app-env.d.ts b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/react-app-env.d.ts deleted file mode 100644 index 6431bc5fc..000000000 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/react-app-env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/Belt.shim.affine b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/Belt.shim.affine new file mode 100644 index 000000000..9f73ace86 --- /dev/null +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/Belt.shim.affine @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Belt.shim; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +import type { list } from "./RescriptPervasives.shim"; + +export type List_t = list; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/Belt.shim.ts b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/Belt.shim.ts deleted file mode 100644 index 18897a9b0..000000000 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/Belt.shim.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { list } from "./RescriptPervasives.shim"; - -export type List_t = list; diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/Js.shim.affine b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/Js.shim.affine new file mode 100644 index 000000000..ea775677c --- /dev/null +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/Js.shim.affine @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Js.shim; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +export type Json_t = unknown; + +export type t = unknown; + +export type TypedArray2_Uint8Array_t = Uint8Array; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/Js.shim.ts b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/Js.shim.ts deleted file mode 100644 index 7c735117f..000000000 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/Js.shim.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type Json_t = unknown; - -export type t = unknown; - -export type TypedArray2_Uint8Array_t = Uint8Array; diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/Jsx.shim.affine b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/Jsx.shim.affine new file mode 100644 index 000000000..f6d070791 --- /dev/null +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/Jsx.shim.affine @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module Jsx.shim; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +import type { ReactElement } from "react"; + +export type element = ReactElement; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/Jsx.shim.ts b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/Jsx.shim.ts deleted file mode 100644 index 236aca55a..000000000 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/Jsx.shim.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ReactElement } from "react"; - -export type element = ReactElement; diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/JsxEvent.shim.ts b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/JsxEvent.shim.affine similarity index 81% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/JsxEvent.shim.ts rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/JsxEvent.shim.affine index c3b44ff02..b7c85262c 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/shims/JsxEvent.shim.ts +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/JsxEvent.shim.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module JsxEvent.shim; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === export abstract class Animation_t { protected opaque: unknown; } @@ -59,3 +67,5 @@ export type inputFocusEvent = React.FocusEvent; export abstract class Mouse_t { protected opaque: unknown; } + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/RescriptPervasives.shim.ts b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/RescriptPervasives.shim.affine similarity index 68% rename from rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/RescriptPervasives.shim.ts rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/RescriptPervasives.shim.affine index af1e6dc7e..d9e69a19a 100644 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/RescriptPervasives.shim.ts +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/shims/RescriptPervasives.shim.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module RescriptPervasives.shim; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === const $$Array = require("bs-platform/lib/js/array"); export abstract class EmptyList { @@ -19,3 +27,5 @@ export function cons(itm: T, lst: list): list { export const emptyList: EmptyList = /* [] */ 0 as any; export const fromArray = $$Array.to_list; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/strange_file_names/404.gen.affine b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/strange_file_names/404.gen.affine new file mode 100644 index 000000000..b7c79e53a --- /dev/null +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/strange_file_names/404.gen.affine @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module 404.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from 404.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +import * as _404JS from './404.res.js'; + +export const x: number = _404JS.x as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/strange_file_names/404.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/strange_file_names/404.gen.tsx deleted file mode 100644 index 71445c182..000000000 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/strange_file_names/404.gen.tsx +++ /dev/null @@ -1,8 +0,0 @@ -/* TypeScript file generated from 404.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -import * as _404JS from './404.res.js'; - -export const x: number = _404JS.x as any; diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/strange_file_names/AppModal.web.gen.affine b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/strange_file_names/AppModal.web.gen.affine new file mode 100644 index 000000000..74e9cb309 --- /dev/null +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/strange_file_names/AppModal.web.gen.affine @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module AppModal.web.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from AppModal.web.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +import * as AppModal_webJS from './AppModal.web.res.js'; + +export const x: number = AppModal_webJS.x as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/strange_file_names/AppModal.web.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/strange_file_names/AppModal.web.gen.tsx deleted file mode 100644 index 2da19d83e..000000000 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/strange_file_names/AppModal.web.gen.tsx +++ /dev/null @@ -1,8 +0,0 @@ -/* TypeScript file generated from AppModal.web.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -import * as AppModal_webJS from './AppModal.web.res.js'; - -export const x: number = AppModal_webJS.x as any; diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/strange_file_names/_under.gen.affine b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/strange_file_names/_under.gen.affine new file mode 100644 index 000000000..d11f3d79f --- /dev/null +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/strange_file_names/_under.gen.affine @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module _under.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from _under.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +import * as _underJS from './_under.res.js'; + +export const x: number = _underJS.x as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/strange_file_names/_under.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/strange_file_names/_under.gen.tsx deleted file mode 100644 index 334ed855f..000000000 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/strange_file_names/_under.gen.tsx +++ /dev/null @@ -1,8 +0,0 @@ -/* TypeScript file generated from _under.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -import * as _underJS from './_under.res.js'; - -export const x: number = _underJS.x as any; diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/strange_file_names/with_underscore.gen.affine b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/strange_file_names/with_underscore.gen.affine new file mode 100644 index 000000000..171b0ac8a --- /dev/null +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/strange_file_names/with_underscore.gen.affine @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module with_underscore.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +/* TypeScript file generated from with_underscore.res by genType. */ + +/* eslint-disable */ +/* tslint:disable */ + +import * as with_underscoreJS from './with_underscore.res.js'; + +export const x: number = with_underscoreJS.x as any; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/strange_file_names/with_underscore.gen.tsx b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/strange_file_names/with_underscore.gen.tsx deleted file mode 100644 index f56f140e0..000000000 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/strange_file_names/with_underscore.gen.tsx +++ /dev/null @@ -1,8 +0,0 @@ -/* TypeScript file generated from with_underscore.res by genType. */ - -/* eslint-disable */ -/* tslint:disable */ - -import * as with_underscoreJS from './with_underscore.res.js'; - -export const x: number = with_underscoreJS.x as any; diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/testReferences.ts b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/testReferences.affine similarity index 55% rename from rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/testReferences.ts rename to rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/testReferences.affine index 4f48449ba..2e5b11a2d 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/gentype_tests/typescript-react-example/src/testReferences.ts +++ b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/src/testReferences.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module testReferences; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === import * as References from "./References.gen"; const r: { contents: number } = { contents: 34 }; @@ -11,3 +19,5 @@ const ar: References.t = References.make(34); References.set(ar, 42); export const an: number = References.get(ar); + +==================================== */ diff --git a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/tsconfig.json b/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/tsconfig.json deleted file mode 100644 index 589016b98..000000000 --- a/rescript-ecosystem/rescript/tests/gentype_tests/typescript-react-example/tsconfig.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "compilerOptions": { - "module": "ESNext", - "moduleResolution": "Node", - "lib": ["DOM", "DOM.Iterable", "ESNext"], - "jsx": "react-jsx", - "strict": true, - "skipLibCheck": true, - "allowJs": true, - "allowImportingTsExtensions": true, - "noEmit": true - }, - "include": ["src"] -} diff --git a/rescript-ecosystem/packages/core/compiler-source/tests/tests/src/variantsMatching.gen.tsx b/rescript-ecosystem/rescript/tests/tests/src/variantsMatching.gen.affine similarity index 70% rename from rescript-ecosystem/packages/core/compiler-source/tests/tests/src/variantsMatching.gen.tsx rename to rescript-ecosystem/rescript/tests/tests/src/variantsMatching.gen.affine index b1344de69..f4984c3ac 100644 --- a/rescript-ecosystem/packages/core/compiler-source/tests/tests/src/variantsMatching.gen.tsx +++ b/rescript-ecosystem/rescript/tests/tests/src/variantsMatching.gen.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module variantsMatching.gen; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === /* TypeScript file generated from variantsMatching.res by genType. */ /* eslint-disable */ @@ -18,3 +26,5 @@ export type MyNullableExtended_t = null | undefined | "WhyNotAnotherOne" | a; export type UntaggedWithBool_t = string | number | boolean | string; export type UntaggedWithTuple_t = string | [number, number, string]; + +==================================== */ diff --git a/rescript-ecosystem/rescript/tsconfig.json b/rescript-ecosystem/rescript/tsconfig.json deleted file mode 100644 index b23a0e8b4..000000000 --- a/rescript-ecosystem/rescript/tsconfig.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2022", - "module": "NodeNext", - "moduleResolution": "NodeNext", - "allowJs": true, - "resolveJsonModule": true, - "strict": true, - "strictNullChecks": true, - "noImplicitAny": true, - "noEmit": true, - "skipLibCheck": true - }, - "include": [ - "cli/*", - "lib/*", - "lib_dev/*", - "scripts/*", - "packages/**", - "tests/**/input.js", - ".github/workflows/*.js", - "yarn.config.cjs", - "package.json" - ], - "exclude": ["*.res.js", "*.res.mjs"] -} diff --git a/v-ecosystem/v-deno/deno.json b/v-ecosystem/v-deno/deno.json deleted file mode 100644 index 37141f2e9..000000000 --- a/v-ecosystem/v-deno/deno.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json", - "name": "@hyperpolymath/v-deno", - "version": "0.1.0", - "license": "PMPL-1.0-or-later", - "exports": "./src/mod.ts", - "tasks": { - "test": "deno test --allow-ffi --allow-read --allow-run", - "check": "deno check src/mod.ts", - "fmt": "deno fmt", - "lint": "deno lint", - "build:examples": "v -shared examples/*.v" - }, - "fmt": { - "indentWidth": 2, - "singleQuote": false, - "proseWrap": "preserve" - }, - "lint": { - "rules": { - "tags": ["recommended"] - } - }, - "compilerOptions": { - "strict": true, - "noImplicitAny": true - } -} diff --git a/well-known-ecosystem/templates/deno-fresh/well_known_middleware.ts b/well-known-ecosystem/templates/deno-fresh/well_known_middleware.affine similarity index 94% rename from well-known-ecosystem/templates/deno-fresh/well_known_middleware.ts rename to well-known-ecosystem/templates/deno-fresh/well_known_middleware.affine index d22aef2d3..999a552c0 100644 --- a/well-known-ecosystem/templates/deno-fresh/well_known_middleware.ts +++ b/well-known-ecosystem/templates/deno-fresh/well_known_middleware.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module well_known_middleware; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === // SPDX-License-Identifier: MPL-2.0 OR PMPL-1.0-or-later // SPDX-FileCopyrightText: 2024-2025 hyperpolymath // @@ -140,3 +148,5 @@ export async function handler(req: Request, ctx: FreshContext) { return ctx.next(); } + +==================================== */ diff --git a/well-known-ecosystem/templates/deno-fresh/well_known_plugin.ts b/well-known-ecosystem/templates/deno-fresh/well_known_plugin.affine similarity index 94% rename from well-known-ecosystem/templates/deno-fresh/well_known_plugin.ts rename to well-known-ecosystem/templates/deno-fresh/well_known_plugin.affine index ada18e4af..b482f9a82 100644 --- a/well-known-ecosystem/templates/deno-fresh/well_known_plugin.ts +++ b/well-known-ecosystem/templates/deno-fresh/well_known_plugin.affine @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module well_known_plugin; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === // SPDX-License-Identifier: MPL-2.0 OR PMPL-1.0-or-later // SPDX-FileCopyrightText: 2024-2025 hyperpolymath // @@ -137,3 +145,5 @@ export function wellKnownPlugin(config: WellKnownConfig): Plugin { // }), // ], // }); + +==================================== */