UNPKG
@webwriter/block-based-code
Version:
latest (1.7.3)
1.7.3
1.7.2
1.7.1
1.7.0
1.6.3
1.6.2
1.6.1
1.6.0
1.5.9
1.5.8
1.5.7
1.5.6
1.5.5
1.5.4
Write block-based code (e.g. Scratch) and run it.
@webwriter/block-based-code
/
lib
/
blockly
/
types
/
generator.ts
8 lines
(6 loc)
•
264 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
import
type
{
Block
}
from
"blockly"
;
import
{
ExecutableGenerator
}
from
"../generator/generator"
;
/** * The generator function type. */
export
type
GeneratorFunction
=
(
block
:
Block
,
generator
:
ExecutableGenerator
) =>
[
string
,
number
] |
string
|
null
;