@storybook/types 7.1.0-alpha.31 → 7.1.0-alpha.33
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/dist/index.d.ts +13 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1970,6 +1970,7 @@ interface CLIOptions {
|
|
|
1970
1970
|
disableTelemetry?: boolean;
|
|
1971
1971
|
enableCrashReports?: boolean;
|
|
1972
1972
|
host?: string;
|
|
1973
|
+
initialPath?: string;
|
|
1973
1974
|
/**
|
|
1974
1975
|
* @deprecated Use 'staticDirs' Storybook Configuration option instead
|
|
1975
1976
|
*/
|
|
@@ -2261,17 +2262,23 @@ interface ChannelEvent {
|
|
|
2261
2262
|
interface Listener {
|
|
2262
2263
|
(...args: any[]): void;
|
|
2263
2264
|
}
|
|
2264
|
-
interface
|
|
2265
|
+
interface ChannelArgsSingle {
|
|
2265
2266
|
transport?: ChannelTransport;
|
|
2266
2267
|
async?: boolean;
|
|
2267
2268
|
}
|
|
2269
|
+
interface ChannelArgsMulti {
|
|
2270
|
+
transports: ChannelTransport[];
|
|
2271
|
+
async?: boolean;
|
|
2272
|
+
}
|
|
2273
|
+
|
|
2268
2274
|
declare class Channel {
|
|
2269
2275
|
readonly isAsync: boolean;
|
|
2270
2276
|
private sender;
|
|
2271
2277
|
private events;
|
|
2272
2278
|
private data;
|
|
2273
|
-
private readonly
|
|
2274
|
-
constructor(
|
|
2279
|
+
private readonly transports;
|
|
2280
|
+
constructor(input: ChannelArgsMulti);
|
|
2281
|
+
constructor(input: ChannelArgsSingle);
|
|
2275
2282
|
get hasTransport(): boolean;
|
|
2276
2283
|
addListener(eventName: string, listener: Listener): void;
|
|
2277
2284
|
emit(eventName: string, ...args: any): void;
|
|
@@ -2511,6 +2518,9 @@ interface API_ProviderData<API> {
|
|
|
2511
2518
|
}
|
|
2512
2519
|
interface API_Provider<API> {
|
|
2513
2520
|
channel?: Channel;
|
|
2521
|
+
/**
|
|
2522
|
+
* @deprecated will be removed in 8.0, please use channel instead
|
|
2523
|
+
*/
|
|
2514
2524
|
serverChannel?: Channel;
|
|
2515
2525
|
renderPreview?: API_IframeRenderer;
|
|
2516
2526
|
handleAPI(api: API): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/types",
|
|
3
|
-
"version": "7.1.0-alpha.
|
|
3
|
+
"version": "7.1.0-alpha.33",
|
|
4
4
|
"description": "Core Storybook TS Types",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"prep": "../../../scripts/prepare/bundle.ts"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@storybook/channels": "7.1.0-alpha.
|
|
46
|
+
"@storybook/channels": "7.1.0-alpha.33",
|
|
47
47
|
"@types/babel__core": "^7.0.0",
|
|
48
48
|
"@types/express": "^4.7.0",
|
|
49
49
|
"file-system-cache": "^2.0.0"
|