@toa.io/pointer 0.2.1-dev.3 → 0.2.1-dev.4
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 +1 -1
- package/source/pointer.js +0 -4
- package/types/deployment.d.ts +6 -7
- package/types/pointer.d.ts +1 -3
- package/types/uris.d.ts +5 -5
- package/types/index.d.ts +0 -6
package/package.json
CHANGED
package/source/pointer.js
CHANGED
package/types/deployment.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
// noinspection ES6UnusedImports
|
|
2
|
-
|
|
3
1
|
import { dependency } from '@toa.io/operations/types/deployment'
|
|
4
2
|
import { dependencies } from '@toa.io/norm/types'
|
|
5
|
-
import
|
|
3
|
+
import * as _uris from './uris'
|
|
6
4
|
|
|
7
5
|
declare namespace toa.pointer {
|
|
8
6
|
|
|
@@ -14,9 +12,10 @@ declare namespace toa.pointer {
|
|
|
14
12
|
|
|
15
13
|
}
|
|
16
14
|
|
|
17
|
-
type Deployment = (
|
|
18
|
-
|
|
15
|
+
type Deployment = (
|
|
16
|
+
instances: dependencies.Instance[],
|
|
17
|
+
uris: _uris.URIs,
|
|
18
|
+
options: deployment.Options
|
|
19
|
+
) => dependency.Declaration
|
|
19
20
|
|
|
20
21
|
}
|
|
21
|
-
|
|
22
|
-
export const deployment: toa.pointer.Deployment
|
package/types/pointer.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ declare namespace toa.pointer {
|
|
|
4
4
|
protocol: string // for local environment
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
interface Pointer {
|
|
8
8
|
protocol: string
|
|
9
9
|
host: string
|
|
10
10
|
port: number
|
|
@@ -17,5 +17,3 @@ declare namespace toa.pointer {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
export type Pointer = toa.pointer.Pointer
|
package/types/uris.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ declare namespace toa.pointer {
|
|
|
4
4
|
|
|
5
5
|
namespace uris {
|
|
6
6
|
|
|
7
|
-
type Node = {
|
|
8
|
-
[key: string]:
|
|
7
|
+
type Node = string | {
|
|
8
|
+
[key: string]: Node
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
type Constructor = (declaration: URIs | string) => URIs
|
|
@@ -19,10 +19,10 @@ declare namespace toa.pointer {
|
|
|
19
19
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
type URIs = {
|
|
22
|
+
type URIs = string | {
|
|
23
23
|
default?: string
|
|
24
|
-
[key: string]:
|
|
25
|
-
}
|
|
24
|
+
[key: string]: uris.Node
|
|
25
|
+
}
|
|
26
26
|
|
|
27
27
|
}
|
|
28
28
|
|