-
Notifications
You must be signed in to change notification settings - Fork 1
🚚 chore(vm): migrate to typescript part 1 #235
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
Merged
Merged
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
2349f7a
:wrench: chore(vm): convret util to be ts
SimonShiki 8b70f2e
:wrench: chore(vm): migrate some engine stuffs to typescript
SimonShiki 41a4374
:bug: fix(vm): correct reference
SimonShiki 0589c27
:wrench: chore(vm): migrate engine/variable
SimonShiki d05e248
:wrench: chore(vm): migrate engine/adapter
SimonShiki c6e7f99
:fire: chore(vm): remove mutation adapter
SimonShiki fe8ec7a
:wrench: chore(vm): migrate profiler
SimonShiki 46b43f0
:rewind: revert: ":fire: chore(vm): remove mutation adapter"
SimonShiki d3ac561
:wrench: chore(vm): migrate mutation adapter
SimonShiki 5f2bf1b
:bug: fix(vm): dts generation strategy
SimonShiki 5a1aad5
:wrench: chore(vm): migrate some io adapters
SimonShiki 9750345
:wrench: chore(vm): migrate dispatchers
SimonShiki 9fda883
:bug: fix(vm): tests except worker-related issues
SimonShiki ea63bc7
:art: chore(vm): fix lint
SimonShiki 906c505
:art: chore(vm): fix lint
SimonShiki a840dcb
:bug: fix(vm): run ts worker in same process
SimonShiki 10999ac
:wrench: chore(vm): migrate scratch3_control category
SimonShiki 6340767
:wrench: chore(vm): migrate some categories
SimonShiki 9b7f81e
:wrench: chore(vm): migrate left categories
SimonShiki c4c2536
:wrench: chore(vm): migrate sprite.js
SimonShiki e3ad9ff
:wrench: chore(vm): migrate thread.js
SimonShiki 7e4319d
:wrench: chore(block): migrate block-utility
SimonShiki e1d7786
:art: chore(vm): lint fix
SimonShiki a3a5175
:bug: fix: build and tests
SimonShiki 989ff04
:bug: fix(vm): missing util mock
SimonShiki 55635b9
:wrench: chore(vm): migrate sequencer
SimonShiki 575b238
:beers: fix(vm): accidentally change clone logic
SimonShiki 5fb5b0c
:bug: fix(vm): inconsistent behavior
SimonShiki 0980b45
:wrench: chore(vm): export schema
SimonShiki 94f99d7
:wrench: chore(vm): fix build
SimonShiki 3da5bea
:art: chore(vm): missing semicolon
SimonShiki fb0f1d2
:wrench: chore(vm): add missing comments
SimonShiki 276aa21
:wrench: chore(vm): extract type traits
SimonShiki 3ee5d3a
:construction: merge: update with dev/3.2
SimonShiki 380e972
:wrench: chore(vm): refine types
SimonShiki f319a1d
:wrench: chore(vm): resolve requested changes
SimonShiki f5d30d9
:wrench: chore(vm): assume block always exists in runtime cache
SimonShiki 5b97b78
:wrench: chore(vm): revert rendered target related changes
SimonShiki f8cebf7
:wrench: chore(vm): add jsdoc for type traits
SimonShiki c8a4926
:wrench: chore(vm): revert rendered target related changes 2
SimonShiki e67d1ec
:wrench: chore(vm): don't trigger et hats if thread get retired
SimonShiki 23013b2
:wrench: chore(vm): re-add original comments & keep code style
SimonShiki 2d36060
:wrench: chore(vm): check thread status instead
SimonShiki 22ea1aa
:wrench: chore(vm): use null assertions for safe paths
SimonShiki fc9bfad
:wrench: chore(vm): use null assertions for step sequencer
SimonShiki File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
| import type BlockUtility from '../engine/block-utility'; | ||
| import type {HatMetadata, MonitorBlockInfo} from '../engine/runtime'; | ||
|
|
||
| export type BlockArgs = { | ||
| [argName: string]: any; | ||
| mutation?: Record<string, any>; | ||
| } | ||
|
|
||
| export type BlockFunction = (args: BlockArgs, util: BlockUtility) => any; | ||
|
|
||
| export interface CategoryPrototype { | ||
| /** | ||
| * Retrieve the block primitives implemented by this package. | ||
| * @returns Mapping of opcode to Function. | ||
| */ | ||
| getPrimitives(): Record<string, BlockFunction>; | ||
| getHats?(): Record<string, HatMetadata>; | ||
| getMonitored?(): Record<string, MonitorBlockInfo>; | ||
| getOrders?(): Record<string, (string | {execute: string})[]>; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test types should also get resolved if they use ts.