@cocos/cocos-cli-types 0.0.1-alpha.23.1 → 0.0.1-alpha.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@cocos/cocos-cli-types",
3
3
  "description": "types for cocos cli",
4
4
  "author": "cocos cli",
5
- "version": "0.0.1-alpha.23.1",
5
+ "version": "0.0.1-alpha.24.1",
6
6
  "main": "index.d.ts",
7
7
  "types": "index.d.ts",
8
8
  "exports": {
package/project.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare function close_2(): Promise<void>;
1
+ export declare function close_2(): Promise<void>;
2
2
  export { close_2 as close };
3
3
 
4
4
  export declare function get(): Promise<Project>;
@@ -7,7 +7,7 @@ export declare function getInfo(): Promise<ProjectInfo>;
7
7
 
8
8
  export declare function init(projectPath: string): Promise<void>;
9
9
 
10
- declare interface IProject {
10
+ export declare interface IProject {
11
11
  /**
12
12
  * Gets the project directory path
13
13
  *
@@ -80,10 +80,10 @@ declare interface IProject {
80
80
  updateInfo<T>(keyOrValue: string | ProjectInfo, value?: T): Promise<boolean>;
81
81
  }
82
82
 
83
- declare function open_2(projectPath: string): Promise<void>;
83
+ export declare function open_2(projectPath: string): Promise<void>;
84
84
  export { open_2 as open };
85
85
 
86
- declare class Project implements IProject {
86
+ export declare class Project implements IProject {
87
87
  /**
88
88
  * The version of the Project
89
89
  */
@@ -126,7 +126,7 @@ declare class Project implements IProject {
126
126
  /**
127
127
  * Project creator information
128
128
  */
129
- declare interface ProjectCreatorInfo {
129
+ export declare interface ProjectCreatorInfo {
130
130
  /**
131
131
  * Version of the tool or engine used to create the project
132
132
  */
@@ -155,7 +155,7 @@ declare interface ProjectCreatorInfo {
155
155
  /**
156
156
  * Project information
157
157
  */
158
- declare interface ProjectInfo {
158
+ export declare interface ProjectInfo {
159
159
  /**
160
160
  * Project name
161
161
  */
@@ -192,6 +192,6 @@ declare interface ProjectInfo {
192
192
  * - '2d': 2D Project
193
193
  * - '3d': 3D Project
194
194
  */
195
- declare type ProjectType = '2d' | '3d';
195
+ export declare type ProjectType = '2d' | '3d';
196
196
 
197
197
  export { };
package/scripting.d.ts CHANGED
@@ -2,14 +2,14 @@
2
2
 
3
3
  import { ChunkInfo } from '@cocos/creator-programming-quick-pack/lib/loader';
4
4
 
5
- declare enum AssetActionEnum {
5
+ export declare enum AssetActionEnum {
6
6
  'add' = 0,
7
7
  'change' = 1,
8
8
  'delete' = 2,
9
9
  'none' = 3
10
10
  }
11
11
 
12
- declare interface AssetChangeInfo {
12
+ export declare interface AssetChangeInfo {
13
13
  type: AssetChangeType;
14
14
  uuid: string;
15
15
  filePath: string;
@@ -17,7 +17,7 @@ declare interface AssetChangeInfo {
17
17
  userData: object;
18
18
  }
19
19
 
20
- declare type AssetChangeType = AssetActionEnum;
20
+ export declare type AssetChangeType = AssetActionEnum;
21
21
 
22
22
  export declare interface FilterPluginOptions {
23
23
  loadPluginInEditor?: boolean;
@@ -28,7 +28,7 @@ export declare interface FilterPluginOptions {
28
28
 
29
29
  export declare function getProgrammingFacet(): Promise<ProgrammingFacet>;
30
30
 
31
- declare interface IEngineOptions {
31
+ export declare interface IEngineOptions {
32
32
  /**
33
33
  * 引擎仓库根目录。
34
34
  */
@@ -47,7 +47,7 @@ declare interface IEngineOptions {
47
47
  features: string[];
48
48
  }
49
49
 
50
- declare interface ImportMap {
50
+ export declare interface ImportMap {
51
51
  imports?: Record<string, string>;
52
52
  scopes?: Record<string, Record<string, string>>;
53
53
  }
@@ -60,7 +60,7 @@ export declare interface IPluginScriptInfo extends PluginScriptInfo {
60
60
  url: string;
61
61
  }
62
62
 
63
- declare interface PluginScriptInfo {
63
+ export declare interface PluginScriptInfo {
64
64
  /**
65
65
  * 脚本文件。
66
66
  */
@@ -68,7 +68,7 @@ declare interface PluginScriptInfo {
68
68
  uuid: string;
69
69
  }
70
70
 
71
- declare class ProgrammingFacet {
71
+ export declare class ProgrammingFacet {
72
72
  private _packerDriverUpdateCount;
73
73
  private _asyncIteration;
74
74
  static create(engine: IEngineOptions, projectPath: string): Promise<ProgrammingFacet>;