File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/core/src/lib/compose Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,22 +8,22 @@ interface Schema {
8
8
const COMPOSE_KEY = 'schemas' ;
9
9
const SCHEMA_STACK : Schema [ ] = [ ] ;
10
10
11
- function getCurrentSchema ( ) : Schema | undefined {
11
+ export function getCurrentSchema ( ) : Schema | undefined {
12
12
return SCHEMA_STACK [ SCHEMA_STACK . length - 1 ] ;
13
13
}
14
14
15
- function enterSchema ( schmea : Schema ) {
16
- SCHEMA_STACK . push ( schmea ) ;
15
+ function enterSchema ( schema : Schema ) {
16
+ SCHEMA_STACK . push ( schema ) ;
17
17
}
18
18
19
19
function leaveSchema ( ) {
20
20
SCHEMA_STACK . pop ( ) ;
21
21
}
22
22
23
- function joinSchema ( schmea : Schema ) {
23
+ function joinSchema ( schema : Schema ) {
24
24
const currentSchema = getCurrentSchema ( ) ;
25
25
// If a schema already exists, just push it in as a subschema.
26
- currentSchema ?. schemas ! . push ( schmea ) ;
26
+ currentSchema ?. schemas ! . push ( schema ) ;
27
27
}
28
28
29
29
const IS_BUILDER = Symbol ( ) ;
You can’t perform that action at this time.
0 commit comments