ad4m icon indicating copy to clipboard operation
ad4m copied to clipboard

@coasys/ad4m-executor: LanguageController/LANGUAGE_CONTROLLER Typescript Type issues

Open btakita opened this issue 8 months ago • 0 comments

globalThis.LANGUAGES is declared at https://github.com/coasys/ad4m/blob/dev/executor/src/languages_extension.d.ts#L38-L46

declare global {
    interface RustLanguages {
        perspectiveDiffReceived: (diff: PerspectiveDiff, languageAddress: string) => void;
        syncStateChanged: (state: PerspectiveState, languageAddress: string) => void;
        telepresenceSignalReceived: (signal: PerspectiveExpression, languageAddress: string) => void;
    }

    const LANGUAGES: RustLanguages;
}

But LANGUAGE_CONTROLLER is used at https://github.com/coasys/ad4m/blob/dev/executor/src/core/LanguageController.ts#L197-L216

There are other type errors when renaming this. Relating to @coasys/ad4m & @coasys/executor having different type definitions of:

  • LinkExpression
  • PerspectiveDiff
  • PerspectiveExpression
  • PerspectiveState

btakita avatar Jun 09 '24 03:06 btakita