Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for connecting multiports in TypeScript runtime. #81

Merged
merged 72 commits into from
Mar 7, 2022

Conversation

hokeun
Copy link
Member

@hokeun hokeun commented Feb 6, 2022

Relevant PR: lf-lang/lingua-franca#942
Relevant Issue: #57

@hokeun hokeun requested a review from lhstrh February 10, 2022 06:58
src/core/bank.ts Outdated Show resolved Hide resolved
lhstrh and others added 26 commits February 23, 2022 23:21
Address cyclic dependencies + fix multiports
Copy link
Member

@lhstrh lhstrh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There a lot that can still be improved upon, but this is already a good step in the right direction. Perhaps we should prioritize more cleanups and getting reactor-ts published on NPM so we can have a cleaner integration with LF (rather than copy code from a submodule).

import {App, Triggers, Args} from '../src/core/reactor';
import {Origin, TimeValue} from '../src/core/time';
import {Reactor, Timer, Action, Sched} from '../src/core/reactor';
import {App, Triggers, Args, Origin, TimeValue, Reactor, Timer, Sched, Action} from '../src/core/internal';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests should probably not use the internal exports but the external ones, which we yet have to set up.

@@ -0,0 +1,109 @@

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note sure whether we should have a dedicated file for types. Probably better to put these in files together with classes they relate to.

@lhstrh lhstrh merged commit bf59b4e into master Mar 7, 2022
@lhstrh lhstrh deleted the ts-multiport branch March 7, 2022 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants