relation.d.ts 576B

12345678910111213141516
  1. /// <reference types="miniprogram-api-typings" />
  2. declare 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 {};