source-academy/modules

[Feature Request]: Module support for Source Typed §x

Opened this issue · 1 comments

Feature

Modules should come with type declarations that can then be used in Source §x Typed.

Here is a proof-of-concept that inappropriately hard-wires the types of the functions of the module rune into the frontend: source-academy/js-slang#1467

Checklist

  • I checked the requested feature does not already exist
  • I checked to make sure that this issue has not already been filed

Source Typed can now import modules (without type checking). However, Full TypeScript cannot:

Screenshot 2024-04-12 at 1 48 07 PM