@veltdev/sdk-staging 1.0.5 → 1.0.6
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/types.d.ts +1 -0
- package/velt.d.ts +9 -10
- package/velt.js +3 -2
package/package.json
CHANGED
package/types.d.ts
CHANGED
package/velt.d.ts
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import * as
|
|
2
|
+
import * as velt from './types';
|
|
3
3
|
export * from './types';
|
|
4
|
-
export type
|
|
5
|
-
export const
|
|
6
|
-
init: (api: string, config?:
|
|
7
|
-
loadSnippyly: () =>
|
|
4
|
+
export type Velt = { init: (api: string, config: velt.Config) => Velt, loaded: boolean, loadVelt: Function, loadSnippyly: Function } & velt.Velt;
|
|
5
|
+
export const Velt: {
|
|
6
|
+
init: (api: string, config?: velt.Config) => Promise<Velt>,
|
|
7
|
+
loadSnippyly: () => Velt,
|
|
8
|
+
loadVelt: () => Velt,
|
|
8
9
|
loaded: boolean
|
|
9
|
-
} &
|
|
10
|
-
|
|
11
|
-
export const Velt = Snippyly;
|
|
10
|
+
} & velt.Velt;
|
|
12
11
|
|
|
13
12
|
////////////////////
|
|
14
13
|
// Global object
|
|
15
14
|
////////////////////
|
|
16
15
|
declare global {
|
|
17
16
|
interface Window {
|
|
18
|
-
Snippyly: typeof
|
|
19
|
-
Velt: typeof
|
|
17
|
+
Snippyly: typeof velt.Velt;
|
|
18
|
+
Velt: typeof velt.Velt;
|
|
20
19
|
}
|
|
21
20
|
}
|