You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
568 B
22 lines
568 B
3 years ago
|
/// <reference types="miniprogram-api-typings" />
|
||
|
declare type TrivialInstance = WechatMiniprogram.Component.TrivialInstance;
|
||
|
export declare function useParent(
|
||
|
name: string,
|
||
|
onEffect?: (this: TrivialInstance) => void
|
||
|
): {
|
||
|
relations: {
|
||
|
[x: string]: WechatMiniprogram.Component.RelationOption;
|
||
|
};
|
||
|
mixin: string;
|
||
|
};
|
||
|
export declare function useChildren(
|
||
|
name: string,
|
||
|
onEffect?: (this: TrivialInstance, target: TrivialInstance) => void
|
||
|
): {
|
||
|
relations: {
|
||
|
[x: string]: WechatMiniprogram.Component.RelationOption;
|
||
|
};
|
||
|
mixin: string;
|
||
|
};
|
||
|
export {};
|