relation.d.ts 568 B

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