next-flow-interface 0.24.26 → 0.24.27
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/index.d.ts +16 -16
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -294,7 +294,7 @@ declare function approximatelyEqual(n1: number, n2: number, bias?: number): bool
|
|
|
294
294
|
/**
|
|
295
295
|
* @public
|
|
296
296
|
*/
|
|
297
|
-
export declare type Attribute<T extends object =
|
|
297
|
+
export declare type Attribute<T extends object = any> = NodeAttribute<T> | StepAttribute<T> | GlobalAttribute<T>
|
|
298
298
|
|
|
299
299
|
/**
|
|
300
300
|
* @public
|
|
@@ -312,15 +312,15 @@ export declare class AttributeService {
|
|
|
312
312
|
stepAttributes: StepAttribute<any>[]
|
|
313
313
|
globalAttributes: GlobalAttribute<any>[]
|
|
314
314
|
/** 注册属性 */
|
|
315
|
-
register<T extends object =
|
|
315
|
+
register<T extends object = any>(attribute: Attribute<T>): void
|
|
316
316
|
/** 通过路径精确匹配获取属性 */
|
|
317
|
-
get<T extends object =
|
|
317
|
+
get<T extends object = any>(type: AttributeType, path: RvPath | string): Attribute<T> | undefined
|
|
318
318
|
/** 通过路径获取 NodeAttribute */
|
|
319
|
-
getNodeAttribute<T extends object =
|
|
319
|
+
getNodeAttribute<T extends object = any>(path: RvPath | string): NodeAttribute<T> | undefined
|
|
320
320
|
/** 通过路径获取 StepAttribute */
|
|
321
|
-
getStepAttribute<T extends object =
|
|
321
|
+
getStepAttribute<T extends object = any>(path: RvPath | string): StepAttribute<T> | undefined
|
|
322
322
|
/** 通过路径获取 GlobalAttribute */
|
|
323
|
-
getGlobalAttribute<T extends object =
|
|
323
|
+
getGlobalAttribute<T extends object = any>(path: RvPath | string): GlobalAttribute<T> | undefined
|
|
324
324
|
/** 根据类型获取属性列表,不传入类型的时候返回所有 */
|
|
325
325
|
getList(type?: AttributeType): Attribute<any>[]
|
|
326
326
|
isPathConflict(type: AttributeType, path: RvPath): boolean
|
|
@@ -484,7 +484,7 @@ export declare class AwarenessService {
|
|
|
484
484
|
/**
|
|
485
485
|
* @public
|
|
486
486
|
*/
|
|
487
|
-
export declare abstract class BaseAttribute<T extends object =
|
|
487
|
+
export declare abstract class BaseAttribute<T extends object = any> {
|
|
488
488
|
abstract type: AttributeType
|
|
489
489
|
abstract path: RvPath
|
|
490
490
|
defaultValue: T
|
|
@@ -2052,7 +2052,7 @@ declare function getSearchParams(key: string): string | undefined
|
|
|
2052
2052
|
/**
|
|
2053
2053
|
* @public
|
|
2054
2054
|
*/
|
|
2055
|
-
export declare abstract class GlobalAttribute<T extends object =
|
|
2055
|
+
export declare abstract class GlobalAttribute<T extends object = any> extends BaseAttribute<T> {
|
|
2056
2056
|
type: AttributeType
|
|
2057
2057
|
generate(): T
|
|
2058
2058
|
initialize(): void
|
|
@@ -2765,7 +2765,7 @@ export declare function MaterialSymbol(props: MaterialSymbolProps): React_2.JSX.
|
|
|
2765
2765
|
export declare function materialSymbol(
|
|
2766
2766
|
icon: string,
|
|
2767
2767
|
options?: MaterialSymbolOptions,
|
|
2768
|
-
): FunctionComponent<Record<string,
|
|
2768
|
+
): FunctionComponent<Record<string, unknown>>
|
|
2769
2769
|
|
|
2770
2770
|
/**
|
|
2771
2771
|
* @public
|
|
@@ -3156,7 +3156,7 @@ export declare const NetworkUtils: {
|
|
|
3156
3156
|
/**
|
|
3157
3157
|
* @public
|
|
3158
3158
|
*/
|
|
3159
|
-
export declare abstract class NodeAttribute<T extends object =
|
|
3159
|
+
export declare abstract class NodeAttribute<T extends object = any> extends BaseAttribute<T> {
|
|
3160
3160
|
type: AttributeType
|
|
3161
3161
|
get targetSid(): string
|
|
3162
3162
|
get targetSidList(): string[]
|
|
@@ -3241,7 +3241,7 @@ export declare abstract class NodeAttribute<T extends object = never> extends Ba
|
|
|
3241
3241
|
/**
|
|
3242
3242
|
* @public
|
|
3243
3243
|
*/
|
|
3244
|
-
export declare type NodeAttributeTargetSubscriber<T extends object =
|
|
3244
|
+
export declare type NodeAttributeTargetSubscriber<T extends object = any> = (
|
|
3245
3245
|
type: TChangeType,
|
|
3246
3246
|
path: RvPath,
|
|
3247
3247
|
value: unknown,
|
|
@@ -6232,7 +6232,7 @@ export declare class StatusService {
|
|
|
6232
6232
|
/**
|
|
6233
6233
|
* @public
|
|
6234
6234
|
*/
|
|
6235
|
-
export declare abstract class StepAttribute<T extends object =
|
|
6235
|
+
export declare abstract class StepAttribute<T extends object = any> extends BaseAttribute<T> {
|
|
6236
6236
|
type: AttributeType
|
|
6237
6237
|
get targetSid(): string
|
|
6238
6238
|
get targetSidList(): string[]
|
|
@@ -6306,7 +6306,7 @@ export declare abstract class StepAttribute<T extends object = never> extends Ba
|
|
|
6306
6306
|
/**
|
|
6307
6307
|
* @public
|
|
6308
6308
|
*/
|
|
6309
|
-
export declare type StepAttributeTargetSubscriber<T extends object =
|
|
6309
|
+
export declare type StepAttributeTargetSubscriber<T extends object = any> = (
|
|
6310
6310
|
type: TChangeType,
|
|
6311
6311
|
path: RvPath,
|
|
6312
6312
|
value: unknown,
|
|
@@ -6813,7 +6813,7 @@ export declare function useGlobal<T = unknown>(
|
|
|
6813
6813
|
/**
|
|
6814
6814
|
* @public
|
|
6815
6815
|
*/
|
|
6816
|
-
export declare function useGlobalAttribute<T extends object =
|
|
6816
|
+
export declare function useGlobalAttribute<T extends object = any>(
|
|
6817
6817
|
path?: string | RvPath,
|
|
6818
6818
|
): {
|
|
6819
6819
|
state: T | StoredRhineVar<T>
|
|
@@ -6908,7 +6908,7 @@ export declare function useTargetNode<T = unknown>(
|
|
|
6908
6908
|
/**
|
|
6909
6909
|
* @public
|
|
6910
6910
|
*/
|
|
6911
|
-
export declare function useTargetNodeAttribute<T extends object =
|
|
6911
|
+
export declare function useTargetNodeAttribute<T extends object = any>(
|
|
6912
6912
|
path?: string | RvPath,
|
|
6913
6913
|
): {
|
|
6914
6914
|
state: T | StoredRhineVar<T>
|
|
@@ -6966,7 +6966,7 @@ export declare function useTargetStep<T = unknown>(
|
|
|
6966
6966
|
/**
|
|
6967
6967
|
* @public
|
|
6968
6968
|
*/
|
|
6969
|
-
export declare function useTargetStepAttribute<T extends object =
|
|
6969
|
+
export declare function useTargetStepAttribute<T extends object = any>(
|
|
6970
6970
|
path?: string | RvPath,
|
|
6971
6971
|
): {
|
|
6972
6972
|
state: T | StoredRhineVar<T>
|