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.

15 lines
576 B

1 year ago
  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 {};