relation.d.ts 568 B

123456789101112131415161718192021
  1. /// <reference types="miniprogram-api-typings" />
  2. declare type TrivialInstance = WechatMiniprogram.Component.TrivialInstance;
  3. export declare function useParent(
  4. name: string,
  5. onEffect?: (this: TrivialInstance) => void
  6. ): {
  7. relations: {
  8. [x: string]: WechatMiniprogram.Component.RelationOption;
  9. };
  10. mixin: string;
  11. };
  12. export declare function useChildren(
  13. name: string,
  14. onEffect?: (this: TrivialInstance, target: TrivialInstance) => void
  15. ): {
  16. relations: {
  17. [x: string]: WechatMiniprogram.Component.RelationOption;
  18. };
  19. mixin: string;
  20. };
  21. export {};