@vyr/declare 0.0.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 ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "@vyr/declare",
3
+ "version": "0.0.1",
4
+ "description": "",
5
+ "main": "./src/index.ts",
6
+ "author": "",
7
+ "license": "MIT",
8
+ "dependencies": {
9
+ "@vyr/locale": "0.0.1"
10
+ },
11
+ "devDependencies": {},
12
+ "files": [
13
+ "package.json",
14
+ "src/"
15
+ ]
16
+ }
package/src/Config.ts ADDED
@@ -0,0 +1,20 @@
1
+ interface PortConfig {
2
+ main: number
3
+ }
4
+
5
+ interface RemoteLib {
6
+ name: string
7
+ entry: string
8
+ }
9
+
10
+ interface ClientConfig {
11
+ readonly browserPlugin: { extension: RemoteLib[]; preview: RemoteLib[] }
12
+ readonly languageProviders: any[]
13
+ readonly language: string
14
+ readonly port: PortConfig
15
+ }
16
+
17
+ export {
18
+ PortConfig,
19
+ ClientConfig,
20
+ }
@@ -0,0 +1,10 @@
1
+ type DraggableEndType = 'insert' | 'insertBefore' | 'insertAfter'
2
+ interface AdditionalData { [k: string]: any }
3
+ interface DraggableData<T extends AdditionalData = AdditionalData> { id: string, data: T }
4
+
5
+
6
+ export {
7
+ DraggableEndType,
8
+ AdditionalData,
9
+ DraggableData,
10
+ }
@@ -0,0 +1,12 @@
1
+ interface Extension {
2
+ readonly name: string
3
+ /**扩展的路径 */
4
+ readonly path: string
5
+ readonly link: boolean
6
+ readonly type: 'node' | 'browser' | 'universal'
7
+ readonly order: number
8
+ }
9
+
10
+ export {
11
+ Extension
12
+ }
package/src/index.ts ADDED
@@ -0,0 +1,3 @@
1
+ export * from './Config'
2
+ export * from './Draggable'
3
+ export * from './Extension'