@toa.io/pointer 0.2.1-dev.3 → 0.3.0

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toa.io/pointer",
3
- "version": "0.2.1-dev.3",
3
+ "version": "0.3.0",
4
4
  "description": "Toa Pointer",
5
5
  "homepage": "https://toa.io",
6
6
  "author": {
package/source/pointer.js CHANGED
@@ -2,10 +2,6 @@
2
2
 
3
3
  const get = require('./.pointer')
4
4
 
5
- // noinspection JSClosureCompilerSyntax
6
- /**
7
- * @implements {toa.pointer.Pointer}
8
- */
9
5
  class Pointer {
10
6
  protocol
11
7
  host
@@ -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 { URIs } from './uris'
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 = (instances: dependencies.Instance[], uris: URIs, options: deployment.Options)
18
- => dependency.Declaration
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
@@ -4,7 +4,7 @@ declare namespace toa.pointer {
4
4
  protocol: string // for local environment
5
5
  }
6
6
 
7
- class Pointer {
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]: string | Node
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]: string | uris.Node
25
- } | string
24
+ [key: string]: uris.Node
25
+ }
26
26
 
27
27
  }
28
28
 
package/types/index.d.ts DELETED
@@ -1,6 +0,0 @@
1
- export type { Pointer } from './pointer'
2
-
3
- export { deployment } from './deployment'
4
- export { variable } from './variable'
5
-
6
- export * as uris from './uris'