ad4m
ad4m copied to clipboard
@coasys/ad4m-executor: LanguageController/LANGUAGE_CONTROLLER Typescript Type issues
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