location.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. function x({
  2. x,
  3. y,
  4. }: {
  5. // Hello world.
  6. x: string,
  7. // Yoyo.
  8. y: string,
  9. }) {}
  10. export interface ApplicationEventData {
  11. registerBroadcastReceiver(onReceiveCallback: (
  12. context: any /* android.content.Context */,
  13. intent: any /* android.content.Intent */
  14. ) => void): void;
  15. }
  16. export type WrappedFormUtils = {
  17. getFieldDecorator(id: string, options?: {
  18. /** 子节点的值的属性,如 Checkbox 的是 'checked' */
  19. valuePropName?: string;
  20. /** 子节点的初始值,类型、可选值均由子节点决定 */
  21. initialValue?: any;
  22. /** 收集子节点的值的时机 */
  23. trigger?: string;
  24. /** 可以把 onChange 的参数转化为控件的值,例如 DatePicker 可设为:(date, dateString) => dateString */
  25. getValueFromEvent?: (...args: any[]) => any;
  26. /** 校验子节点值的时机 */
  27. validateTrigger?: string | string[];
  28. /** 校验规则,参见 [async-validator](https://github.com/yiminghe/async-validator) */
  29. rules?: ValidationRule[];
  30. /** 是否和其他控件互斥,特别用于 Radio 单选控件 */
  31. exclusive?: boolean;
  32. }): (node: React.ReactNode) => React.ReactNode;
  33. };