66 * found in the LICENSE file at https://angular.dev/license
77 */
88
9- import type { FileSystemTree } from '@webcontainer/api' ;
109import { NavigationItem } from './navigation-item' ;
1110
1211/** the step is used only in this function to sort the nav items */
@@ -16,23 +15,6 @@ export type TutorialNavigationItemWithStep = TutorialNavigationItem & {
1615 } ;
1716} ;
1817
19- /**
20- * Represents the contents of the tutorial files to be generated by the build script
21- */
22- export type TutorialFiles = {
23- sourceCode ?: FileSystemTree ;
24- metadata ?: TutorialMetadata ;
25- sourceCodeZip ?: Uint8Array ;
26- route ?: Omit < TutorialNavigationItemWithStep , 'path' > ;
27- } ;
28-
29- export type PlaygroundFiles = {
30- sourceCode ?: FileSystemTree ;
31- metadata ?: TutorialMetadata ;
32- sourceCodeZip ?: undefined ;
33- route ?: PlaygroundRouteData ;
34- } ;
35-
3618/** Represents the contents of the tutorial config file */
3719export type TutorialMetadata = {
3820 type : TutorialConfig [ 'type' ] ;
@@ -58,7 +40,7 @@ export type TutorialMetadata = {
5840 dependencies ?: Record < string , string > ;
5941} ;
6042
61- export type TutorialStep = {
43+ type TutorialStep = {
6244 step : number ;
6345 name : string ;
6446 path : string ;
@@ -74,7 +56,7 @@ export type TutorialConfig =
7456 | CliTutorialConfig
7557 | EditorOnlyTutorialConfig ;
7658
77- export interface TutorialConfigBase {
59+ interface TutorialConfigBase {
7860 type : TutorialType ;
7961
8062 /** The tutorial title */
@@ -111,11 +93,11 @@ export interface LocalTutorialConfig extends TutorialConfigBase {
11193}
11294
11395/** Represents a tutorial config that supports only the interactive terminal for the Angular CLI */
114- export type CliTutorialConfig = Omit < LocalTutorialConfig , 'type' > & {
96+ type CliTutorialConfig = Omit < LocalTutorialConfig , 'type' > & {
11597 type : TutorialType . CLI ;
11698} ;
11799
118- export type EditorOnlyTutorialConfig = Omit < EditorTutorialConfig , 'type' > & {
100+ type EditorOnlyTutorialConfig = Omit < EditorTutorialConfig , 'type' > & {
119101 type : TutorialType . EDITOR_ONLY ;
120102} ;
121103
0 commit comments