dumi-assets-types
Advanced tools
Comparing version 1.0.0-beta.3 to 1.0.0-beta.4
{ | ||
"name": "dumi-assets-types", | ||
"version": "1.0.0-beta.3", | ||
"version": "1.0.0-beta.4", | ||
"description": "Type definition for UI assets that build from dumi", | ||
@@ -19,3 +19,4 @@ "types": "typings/index.d.ts", | ||
], | ||
"license": "MIT" | ||
"license": "MIT", | ||
"gitHead": "65032a04344b5cb3e8ddb1b8ec620c17b03866fa" | ||
} |
@@ -6,2 +6,36 @@ /** | ||
export interface AtomPropsDefinition { | ||
/** | ||
* export name | ||
*/ | ||
[key: string]: { | ||
/** | ||
* component property name | ||
*/ | ||
identifier: string; | ||
/** | ||
* component property label | ||
*/ | ||
name?: string; | ||
/** | ||
* component property description | ||
*/ | ||
description?: string; | ||
'description.zh-CN'?: string; | ||
'description.en-US'?: string; | ||
/** | ||
* component property type | ||
*/ | ||
type: string; | ||
/** | ||
* component property default value | ||
*/ | ||
default?: string; | ||
/** | ||
* property whether required | ||
*/ | ||
required?: true; | ||
}[]; | ||
} | ||
export default interface AtomAsset { | ||
@@ -25,5 +59,5 @@ /** | ||
/** | ||
* TODO: the API spec of atom asset | ||
* the API spec of atom asset | ||
*/ | ||
props: any; | ||
props: AtomPropsDefinition; | ||
} |
@@ -6,2 +6,3 @@ import AtomAsset from './atom'; | ||
export { default as ExampleAsset } from './example'; | ||
export * from './atom'; | ||
export * from './example'; | ||
@@ -8,0 +9,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4258
176