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 definition files for Connectors and Actions + Move /types to /src/types #266

Merged
merged 6 commits into from
Apr 6, 2023

Conversation

pietervp
Copy link
Member

@pietervp pietervp commented Mar 31, 2023

  • Moved types to src/types
  • Added defintion files for connectors
  • Create definition file for actions

The rationale behind this is that the existing /types folder was somehow misplaced under the root folder. These concrete types are part of the src of this repository and their location in the tree should reflect that. If consumers of SDK did not import the types 'directly' (import ... from '@chili-publish/studio-sdk/types/commontypes'), this change should be transparent for them. Although any place that abused the Ts imports will be exposed after this PR gets merged.

Also generated documentation will change slightly, see changes in tsconfig.json.

The root types/ folder is meant to expose Ts definition files. These definition files define functionality implemented elsewhere, in this case in the plugin system of the engine. These definitions define all functionality that will be injected in the QuickJS runtime context, either when using actions, or implementing a connector. By exposing these type definitions, we enable code completion when writing said custom actions / connectors.

* Moved types to src/types
* Added defintion files for connectors
* Create definition file for actions
@github-actions
Copy link
Contributor

Coverage report can be checked at https://chili-dev.azureedge.net/sdk/coverage/266/coverage.html

@github-actions
Copy link
Contributor

github-actions bot commented Mar 31, 2023

Unit Test Results

    1 files    29 suites   31s ⏱️
242 tests 242 ✔️ 0 💤 0
243 runs  243 ✔️ 0 💤 0

Results for commit 9589cbe.

♻️ This comment has been updated with latest results.

types/Actions.d.ts Outdated Show resolved Hide resolved
types/Actions.d.ts Outdated Show resolved Hide resolved
types/Actions.d.ts Outdated Show resolved Hide resolved
+ Cleanup shared definitions
brapoprod
brapoprod previously approved these changes Mar 31, 2023
@brapoprod
Copy link
Member

please fix linting issues

pietervp and others added 3 commits April 5, 2023 11:13
Remove redundant functions

Co-authored-by: Matthias Beerens <3512339+Matthiee@users.noreply.github.com>
@pietervp pietervp requested review from brapoprod and Matthiee April 5, 2023 09:28
@pietervp pietervp marked this pull request as ready for review April 5, 2023 18:15
@pietervp pietervp merged commit 510bc0c into main Apr 6, 2023
@pietervp pietervp deleted the feature/add-quickjs-typings branch April 6, 2023 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants