@toa.io/boot 0.20.0-dev.17 → 0.20.0-dev.19

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,10 +1,11 @@
1
1
  {
2
2
  "name": "@toa.io/boot",
3
- "version": "0.20.0-dev.17",
3
+ "version": "0.20.0-dev.19",
4
4
  "description": "Toa Boot",
5
5
  "author": "temich <tema.gurtovoy@gmail.com>",
6
6
  "homepage": "https://github.com/toa-io/toa#readme",
7
7
  "main": "src/index.js",
8
+ "types": "types/index.d.ts",
8
9
  "repository": {
9
10
  "type": "git",
10
11
  "url": "git+https://github.com/toa-io/toa.git"
@@ -19,13 +20,13 @@
19
20
  "test": "echo \"Error: run tests from root\" && exit 1"
20
21
  },
21
22
  "dependencies": {
22
- "@toa.io/core": "0.20.0-dev.17",
23
- "@toa.io/filesystem": "0.20.0-dev.17",
24
- "@toa.io/generic": "0.20.0-dev.17",
25
- "@toa.io/norm": "0.20.0-dev.17",
26
- "@toa.io/schema": "0.20.0-dev.17",
23
+ "@toa.io/core": "0.20.0-dev.19",
24
+ "@toa.io/filesystem": "0.20.0-dev.19",
25
+ "@toa.io/generic": "0.20.0-dev.19",
26
+ "@toa.io/norm": "0.20.0-dev.19",
27
+ "@toa.io/schema": "0.20.0-dev.19",
27
28
  "clone-deep": "4.0.1",
28
29
  "dotenv": "16.1.1"
29
30
  },
30
- "gitHead": "cafb719d8e80d3e78a00904dc6ab6d6b0d5b568b"
31
+ "gitHead": "e10214f746cf4fc699af42dba90e099487177a43"
31
32
  }
@@ -0,0 +1,3 @@
1
+ import type { bindings } from '@toa.io/core'
2
+
3
+ export function broadcast (name: string, group?: string, binding?: string): bindings.Broadcast
@@ -1,20 +1,5 @@
1
- import * as _core from '@toa.io/core/types'
2
-
3
- declare namespace toa.boot {
4
-
5
- namespace composition {
6
-
7
- type Options = {
8
- bindings?: string[]
9
- storage?: string
10
- extensions?: string[]
11
- }
12
-
13
- }
14
-
15
- type Composition = (paths: string[], options: composition.Options) => Promise<_core.Connector>
16
-
1
+ export type Options = {
2
+ bindings?: string[]
3
+ storage?: string
4
+ extensions?: string[]
17
5
  }
18
-
19
- export type Options = toa.boot.composition.Options
20
- export type Composition = toa.boot.Composition
package/types/index.d.ts CHANGED
@@ -1,3 +1,8 @@
1
- import { Composition } from './composition'
1
+ import * as core from '@toa.io/core'
2
+ import * as composition from './composition'
2
3
 
3
- export const composition: Composition
4
+ export * as bindings from './bindings'
5
+
6
+ export async function composition (paths: string[], options?: composition.Options): Promise<core.Connector>
7
+
8
+ export async function remote (locator: core.Locator): Promise<core.Component>